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

An owning memory handle that derives from unique_ptr that deallocates memory using a Deallocator rather than std::default_delete when it goes out of scope. More...

#include <bond/systems/allocator.h>

Inheritance diagram for Bond::Allocator::Handle< T >:

Public Member Functions

 Handle (Allocator *allocator=nullptr, T *ptr=nullptr)
 
 Handle (Allocator &allocator, T *ptr=nullptr)
 
 Handle (Handle &&other)
 
Handleoperator= (Handle &&other)
 
template<typename U >
 operator Handle< U > () &&
 

Detailed Description

template<typename T>
class Bond::Allocator::Handle< T >

An owning memory handle that derives from unique_ptr that deallocates memory using a Deallocator rather than std::default_delete when it goes out of scope.

Constructor & Destructor Documentation

◆ Handle() [1/3]

template<typename T >
Bond::Allocator::Handle< T >::Handle ( Allocator allocator = nullptr,
T *  ptr = nullptr 
)
inline

◆ Handle() [2/3]

template<typename T >
Bond::Allocator::Handle< T >::Handle ( Allocator allocator,
T *  ptr = nullptr 
)
inline

◆ Handle() [3/3]

template<typename T >
Bond::Allocator::Handle< T >::Handle ( Handle< T > &&  other)
inline

Member Function Documentation

◆ operator Handle< U >()

template<typename T >
template<typename U >
Bond::Allocator::Handle< T >::operator Handle< U > ( ) &&
inline

◆ operator=()

template<typename T >
Handle & Bond::Allocator::Handle< T >::operator= ( Handle< T > &&  other)
inline

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