.TH "std::__allocated_ptr< _Alloc >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::__allocated_ptr< _Alloc > \- Non-standard RAII type for managing pointers obtained from allocators\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Types" .in +1c .ti -1c .RI "\fBusing\fP \fBpointer\fP = \fBtypename\fP \fBallocator_traits\fP< _Alloc >::pointer" .br .ti -1c .RI "\fBusing\fP \fBvalue_type\fP = \fBtypename\fP \fBallocator_traits\fP< _Alloc >::value_type" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fB__allocated_ptr\fP (\fB__allocated_ptr\fP &&\fB__gd\fP) \fBnoexcept\fP" .br .RI "Transfer ownership of the owned pointer\&. " .ti -1c .RI "template<\fBtypename\fP _Ptr , \fBtypename\fP \fB_Req\fP = _Require>> \fB__allocated_ptr\fP (_Alloc &__a, _Ptr \fB__ptr\fP)" .br .RI "Convert __ptr to allocator's pointer type and take ownership of it\&. " .ti -1c .RI "\fB__allocated_ptr\fP (_Alloc &__a, pointer \fB__ptr\fP) \fBnoexcept\fP" .br .RI "Take ownership of __ptr\&. " .ti -1c .RI "\fB~__allocated_ptr\fP ()" .br .RI "Deallocate the owned pointer\&. " .ti -1c .RI "value_type * \fBget\fP ()" .br .RI "Get the address that the owned pointer refers to\&. " .ti -1c .RI "\fB__allocated_ptr\fP & \fBoperator=\fP (\fBstd::nullptr_t\fP) \fBnoexcept\fP" .br .RI "Release ownership of the owned pointer\&. " .in -1c .SH "Detailed Description" .PP .SS "template<\fBtypename\fP _Alloc> .br struct std::__allocated_ptr< _Alloc >"Non-standard RAII type for managing pointers obtained from allocators\&. .SH "Constructor & Destructor Documentation" .PP .SS "template<\fBtypename\fP _Alloc > \fBstd::__allocated_ptr\fP< _Alloc >::__allocated_ptr (_Alloc & __a, pointer __ptr)\fC [inline]\fP, \fC [noexcept]\fP" .PP Take ownership of __ptr\&. .SS "template<\fBtypename\fP _Alloc > template<\fBtypename\fP _Ptr , \fBtypename\fP \fB_Req\fP = _Require>> \fBstd::__allocated_ptr\fP< _Alloc >::__allocated_ptr (_Alloc & __a, _Ptr __ptr)\fC [inline]\fP" .PP Convert __ptr to allocator's pointer type and take ownership of it\&. .SS "template<\fBtypename\fP _Alloc > \fBstd::__allocated_ptr\fP< _Alloc >::__allocated_ptr (\fB__allocated_ptr\fP< _Alloc > && __gd)\fC [inline]\fP, \fC [noexcept]\fP" .PP Transfer ownership of the owned pointer\&. .SS "template<\fBtypename\fP _Alloc > \fBstd::__allocated_ptr\fP< _Alloc >::~\fB__allocated_ptr\fP ()\fC [inline]\fP" .PP Deallocate the owned pointer\&. .PP References \fBstd::allocator_traits< _Alloc >::deallocate()\fP\&. .SH "Member Function Documentation" .PP .SS "template<\fBtypename\fP _Alloc > value_type * \fBstd::__allocated_ptr\fP< _Alloc >::get ()\fC [inline]\fP" .PP Get the address that the owned pointer refers to\&. .SS "template<\fBtypename\fP _Alloc > \fB__allocated_ptr\fP & \fBstd::__allocated_ptr\fP< _Alloc >::operator= (\fBstd::nullptr_t\fP)\fC [inline]\fP, \fC [noexcept]\fP" .PP Release ownership of the owned pointer\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.