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

A utility default deallocator using a simple call to delete. More...

Inheritance diagram for nkMemory::DefaultDeallocator< T >:
nkMemory::Deallocator< T >

Public Member Functions

virtual ~DefaultDeallocator ()=default
 
virtual void deallocate (T *object) override
 
- Public Member Functions inherited from nkMemory::Deallocator< T >
virtual ~Deallocator ()=default
 

Detailed Description

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

A utility default deallocator using a simple call to delete.

Constructor & Destructor Documentation

◆ ~DefaultDeallocator()

template<typename T >
virtual nkMemory::DefaultDeallocator< T >::~DefaultDeallocator ( )
virtualdefault

Destructor.

Member Function Documentation

◆ deallocate()

template<typename T >
virtual void nkMemory::DefaultDeallocator< T >::deallocate ( T *  object)
overridevirtual

Default deallocation implementation using the delete operator. If more complex logic is needed, external code needs to reimplement their own Deallocator.

Parameters
objectThe object to deallocate.

Implements nkMemory::Deallocator< T >.


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