|
Bond 0.9
C++ Bond Runtime Library API Documentation
|
A custom unique_ptr deleter that destroys an aligned object by calling its destructor then freeing its memory by calling Allocator::FreeAligned rather than the delete operator. More...
#include <bond/systems/allocator.h>
Public Member Functions | |
| AlignedObjectDeallocator (Allocator *allocator=nullptr) | |
| Constructs an AlignedObjectDeallocator object. | |
| void | operator() (T *ptr) |
| Destroys the given object and frees its memory by calling Allocator::FreeAligned. | |
Public Attributes | |
| Allocator * | mAllocator |
| The allocator that frees the memory. | |
A custom unique_ptr deleter that destroys an aligned object by calling its destructor then freeing its memory by calling Allocator::FreeAligned rather than the delete operator.
|
inlineexplicit |
Constructs an AlignedObjectDeallocator object.
| allocator | The allocator that frees the memory. If null, the object is neither destroyed nor freed. |
|
inline |
Destroys the given object and frees its memory by calling Allocator::FreeAligned.
| Allocator* Bond::Allocator::AlignedObjectDeallocator< T >::mAllocator |
The allocator that frees the memory.