API Documentation
Public Member Functions | List of all members
nkMemory::DefaultMemorySpaceAllocator< T > Class Template Reference

A default memory space allocator, offering the most basic memory allocation method. More...

Inheritance diagram for nkMemory::DefaultMemorySpaceAllocator< T >:
nkMemory::MemorySpaceAllocator< T >

Public Member Functions

virtual UniquePtr< T > allocate (unsigned long long size) override
 
- Public Member Functions inherited from nkMemory::MemorySpaceAllocator< T >
virtual ~MemorySpaceAllocator ()=default
 

Detailed Description

template<typename T>
class nkMemory::DefaultMemorySpaceAllocator< T >

A default memory space allocator, offering the most basic memory allocation method.

Member Function Documentation

◆ allocate()

template<typename T >
virtual UniquePtr<T> nkMemory::DefaultMemorySpaceAllocator< T >::allocate ( unsigned long long  size)
overridevirtual

Allocates a memory space of given type through a makeUnique call.

Parameters
sizeThe size of the needed memory space, in number of elements.

Implements nkMemory::MemorySpaceAllocator< T >.


The documentation for this class was generated from the following file: