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>
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.
◆ AlignedHandle() [1/3]
Constructs an AlignedHandle object.
- Parameters
-
| allocator | The allocator that frees the memory, or null if it is not to be freed. |
| ptr | Pointer to the owned memory, which must have been allocated by allocator with AllocateAligned. |
◆ AlignedHandle() [2/3]
Constructs an AlignedHandle object.
- Parameters
-
| allocator | The allocator that frees the memory. |
| ptr | Pointer to the owned memory, which must have been allocated by allocator with AllocateAligned. |
◆ AlignedHandle() [3/3]
Constructs an AlignedHandle object that takes ownership of the memory owned by another.
◆ operator AlignedHandle< U >()
template<typename T>
template<typename U>
Transfers ownership of the memory to an AlignedHandle of another pointer type.
◆ operator=()
Frees the currently owned memory and takes ownership of the memory owned by another AlignedHandle.
The documentation for this class was generated from the following file:
- include/bond/systems/allocator.h