API Documentation
DefaultAllocator.h
1 // DefaultAllocator.h
3 //
5 
6 namespace nkMemory
7 {
11  template <typename T>
12  class DefaultAllocator final : public Allocator<T>
13  {
14  public :
15 
19  DefaultAllocator () noexcept = default ;
23  virtual ~DefaultAllocator () = default ;
24 
31  virtual T* allocate () override ;
32  } ;
33 }
nkMemory::Allocator
Interface representing an allocator, supposed to allocate an object when requested.
Definition: Allocator.h:15
nkMemory::DefaultAllocator
A utility default allocator allocating an object through a simple call to new.
Definition: DefaultAllocator.h:13
nkMemory::DefaultAllocator::allocate
virtual T * allocate() override
nkMemory::DefaultAllocator::DefaultAllocator
DefaultAllocator() noexcept=default
nkMemory
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7