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

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

#include <bond/systems/allocator.h>

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

Public Member Functions

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

Detailed Description

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

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

Constructor & Destructor Documentation

◆ AlignedHandle() [1/3]

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

◆ AlignedHandle() [2/3]

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

◆ AlignedHandle() [3/3]

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

Member Function Documentation

◆ operator AlignedHandle< U >()

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

◆ operator=()

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

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