A custom unique_ptr deleter that deallocates memory by calling Allocator::Free rather than the delete operator. The memory is only freed; no object destruction is performed.
More...
#include <bond/systems/allocator.h>
template<typename T>
struct Bond::Allocator::Deallocator< T >
A custom unique_ptr deleter that deallocates memory by calling Allocator::Free rather than the delete operator. The memory is only freed; no object destruction is performed.
◆ Deallocator()
Constructs a Deallocator object.
- Parameters
-
| allocator | The allocator that frees the memory. If null, the memory is not freed. |
◆ operator()()
◆ mAllocator
The allocator that frees the memory.
The documentation for this struct was generated from the following file:
- include/bond/systems/allocator.h