libstdc++
|
Public Member Functions | |
__allocated_ptr (_Alloc &__a, pointer __ptr) noexcept | |
template<typename _Ptr , typename _Req = _Require<is_same<_Ptr, value_type*>>> | |
__allocated_ptr (_Alloc &__a, _Ptr __ptr) | |
__allocated_ptr (__allocated_ptr &&__gd) noexcept | |
~__allocated_ptr () | |
value_type * | get () |
__allocated_ptr & | operator= (std::nullptr_t) noexcept |
Non-standard RAII type for managing pointers obtained from allocators.
Definition at line 46 of file allocated_ptr.h.
std::__allocated_ptr< _Alloc >::__allocated_ptr | ( | _Alloc & | __a, |
pointer | __ptr | ||
) | [inline] |
Take ownership of __ptr.
Definition at line 52 of file allocated_ptr.h.
std::__allocated_ptr< _Alloc >::__allocated_ptr | ( | _Alloc & | __a, |
_Ptr | __ptr | ||
) | [inline] |
Convert __ptr to allocator's pointer type and take ownership of it.
Definition at line 59 of file allocated_ptr.h.
std::__allocated_ptr< _Alloc >::__allocated_ptr | ( | __allocated_ptr< _Alloc > && | __gd | ) | [inline] |
Transfer ownership of the owned pointer.
Definition at line 64 of file allocated_ptr.h.
std::__allocated_ptr< _Alloc >::~__allocated_ptr | ( | ) | [inline] |
Deallocate the owned pointer.
Definition at line 69 of file allocated_ptr.h.
value_type* std::__allocated_ptr< _Alloc >::get | ( | void | ) | [inline] |
Get the address that the owned pointer refers to.
Definition at line 84 of file allocated_ptr.h.
__allocated_ptr& std::__allocated_ptr< _Alloc >::operator= | ( | std::nullptr_t | ) | [inline] |
Release ownership of the owned pointer.
Definition at line 77 of file allocated_ptr.h.