Bond 0.9
C++ Bond Runtime Library API Documentation
Loading...
Searching...
No Matches
Bond::Allocator::Deallocator< T > Struct Template Reference

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>

Public Member Functions

 Deallocator (Allocator *allocator=nullptr)
 
void operator() (T *ptr)
 

Public Attributes

AllocatormAllocator
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Deallocator()

template<typename T >
Bond::Allocator::Deallocator< T >::Deallocator ( Allocator allocator = nullptr)
inlineexplicit

Member Function Documentation

◆ operator()()

template<typename T >
void Bond::Allocator::Deallocator< T >::operator() ( T *  ptr)
inline

Member Data Documentation

◆ mAllocator

template<typename T >
Allocator* Bond::Allocator::Deallocator< T >::mAllocator

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