A utility default allocator allocating an object through a simple call to new. More...
Public Member Functions | |
DefaultAllocator () noexcept=default | |
virtual | ~DefaultAllocator ()=default |
virtual T * | allocate () override |
Public Member Functions inherited from nkMemory::Allocator< T > | |
Allocator () noexcept=default | |
virtual | ~Allocator ()=default |
A utility default allocator allocating an object through a simple call to new.
|
defaultnoexcept |
Constructor.
|
virtualdefault |
Destructor.
|
overridevirtual |
Allocates using the new operator. If a more complex behaviour is needed, external code needs to implement their own Allocator.
Implements nkMemory::Allocator< T >.