|
Bond 0.9
C++ Bond Runtime Library API Documentation
|
A custom unique_ptr deleter that deallocates aligned memory by calling Allocator::FreeAligned, rather than the delete operator. The memory is only freed; no object destruction is performed. More...
#include <bond/systems/allocator.h>
Public Member Functions | |
| AlignedDeallocator (Allocator *allocator=nullptr) | |
| Constructs an AlignedDeallocator object. | |
| void | operator() (T *ptr) |
| Frees the given memory by calling Allocator::FreeAligned. | |
Public Attributes | |
| Allocator * | mAllocator |
| The allocator that frees the memory. | |
A custom unique_ptr deleter that deallocates aligned memory by calling Allocator::FreeAligned, rather than the delete operator. The memory is only freed; no object destruction is performed.
|
inlineexplicit |
Constructs an AlignedDeallocator object.
| allocator | The allocator that frees the memory. If null, the memory is not freed. |
|
inline |
Frees the given memory by calling Allocator::FreeAligned.
| Allocator* Bond::Allocator::AlignedDeallocator< T >::mAllocator |
The allocator that frees the memory.