Interface representing an allocator, supposed to allocate an object when requested. More...
Public Member Functions | |
Allocator () noexcept=default | |
virtual | ~Allocator ()=default |
virtual T * | allocate ()=0 |
Interface representing an allocator, supposed to allocate an object when requested.
This is used with Pools to allow external code to allocate any needed object.
|
defaultnoexcept |
Constructor.
|
virtualdefault |
Desttructor.
|
pure virtual |
Called whenever an allocation has to occur.
Implemented in nkMemory::DefaultAllocator< T >.