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

An owning object handle that derives from unique_ptr that destroys an aligned object using an AlignedObjectDeallocator rather than std::default_delete when it goes out of scope. More...

#include <bond/systems/allocator.h>

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

Public Member Functions

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

Detailed Description

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

An owning object handle that derives from unique_ptr that destroys an aligned object using an AlignedObjectDeallocator rather than std::default_delete when it goes out of scope.

Constructor & Destructor Documentation

◆ AlignedObjectHandle() [1/3]

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

◆ AlignedObjectHandle() [2/3]

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

◆ AlignedObjectHandle() [3/3]

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

Member Function Documentation

◆ operator AlignedObjectHandle< U >()

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

◆ operator=()

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

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