Defines the interface for a memory space allocator, to be used within the pagers. More...
Public Member Functions | |
virtual | ~MemorySpaceAllocator ()=default |
virtual UniquePtr< T > | allocate (unsigned long long size)=0 |
Defines the interface for a memory space allocator, to be used within the pagers.
|
virtualdefault |
Destructor.
|
pure virtual |
Allocates a memory space of given size.
size | The size of the memory space that should be allocated, in number of elements. |
Implemented in nkMemory::DefaultMemorySpaceAllocator< T >.