refactor(memory): remove FDefaultAllocator and directly specify a specific

This commit is contained in:
2023-02-27 23:25:40 +08:00
parent 40d27eece6
commit a15ff69809
4 changed files with 81 additions and 84 deletions

View File

@ -120,13 +120,11 @@ struct FHeapAllocator : public FAllocatorInterface
};
};
using FDefaultAllocator = FHeapAllocator;
/**
* The inline allocator allocates up to a specified number of elements in the same allocation as the container.
* Any allocation needed beyond that causes all data to be moved into an indirect allocation.
*/
template <size_t NumInline, CInstantiableAllocator SecondaryAllocator = FDefaultAllocator>
template <size_t NumInline, CInstantiableAllocator SecondaryAllocator = FHeapAllocator>
struct TInlineAllocator : public FAllocatorInterface
{
template <CObject T>