This commit is contained in:
Wojtek Figat
2021-06-12 19:35:27 +02:00
parent 41ad835d86
commit 47af31a8c4
3 changed files with 20 additions and 3 deletions

View File

@@ -69,7 +69,8 @@ public:
return result;
}
void GetValues(Array<T>& result) const
template<typename AllocationType = HeapAllocation>
void GetValues(Array<T, AllocationType>& result) const
{
result.EnsureCapacity(MaxThreads);
for (int32 i = 0; i < MaxThreads; i++)
@@ -134,7 +135,8 @@ public:
}
}
void GetNotNullValues(Array<T*>& result) const
template<typename AllocationType = HeapAllocation>
void GetNotNullValues(Array<T*, AllocationType>& result) const
{
result.EnsureCapacity(MaxThreads);
for (int32 i = 0; i < MaxThreads; i++)