.TH "std::__allocated_ptr< _Alloc >" 3cxx "Thu Nov 18 2021" "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 .SS "Public Types" .in +1c .ti -1c .RI "using \fBpointer\fP = typename \fBallocator_traits\fP< _Alloc >::pointer" .br .ti -1c .RI "using \fBvalue_type\fP = typename \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 &&__gd) noexcept" .br .RI "Transfer ownership of the owned pointer\&. " .ti -1c .RI "template>> \fB__allocated_ptr\fP (_Alloc &__a, _Ptr __ptr)" .br .RI "Convert __ptr to allocator's pointer type and take ownership of it\&. " .ti -1c .RI "\fB__allocated_ptr\fP (_Alloc &__a, pointer __ptr) noexcept" .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 (std::nullptr_t) noexcept" .br .RI "Release ownership of the owned pointer\&. " .in -1c .SH "Detailed Description" .PP .SS "template .br struct std::__allocated_ptr< _Alloc >" Non-standard RAII type for managing pointers obtained from allocators\&. .PP Definition at line 46 of file allocated_ptr\&.h\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::__allocated_ptr\fP< _Alloc >::\fB__allocated_ptr\fP (_Alloc & __a, pointer __ptr)\fC [inline]\fP, \fC [noexcept]\fP" .PP Take ownership of __ptr\&. .PP Definition at line 52 of file allocated_ptr\&.h\&. .SS "template template>> \fBstd::__allocated_ptr\fP< _Alloc >::\fB__allocated_ptr\fP (_Alloc & __a, _Ptr __ptr)\fC [inline]\fP" .PP Convert __ptr to allocator's pointer type and take ownership of it\&. .PP Definition at line 59 of file allocated_ptr\&.h\&. .SS "template \fBstd::__allocated_ptr\fP< _Alloc >::\fB__allocated_ptr\fP (\fB__allocated_ptr\fP< _Alloc > && __gd)\fC [inline]\fP, \fC [noexcept]\fP" .PP Transfer ownership of the owned pointer\&. .PP Definition at line 65 of file allocated_ptr\&.h\&. .SS "template \fBstd::__allocated_ptr\fP< _Alloc >::~\fB__allocated_ptr\fP ()\fC [inline]\fP" .PP Deallocate the owned pointer\&. .PP Definition at line 70 of file allocated_ptr\&.h\&. .PP References std::allocator_traits< _Alloc >::deallocate()\&. .SH "Member Function Documentation" .PP .SS "template value_type* \fBstd::__allocated_ptr\fP< _Alloc >::get (void)\fC [inline]\fP" .PP Get the address that the owned pointer refers to\&. .PP Definition at line 85 of file allocated_ptr\&.h\&. .SS "template \fB__allocated_ptr\fP& \fBstd::__allocated_ptr\fP< _Alloc >::operator= (std::nullptr_t)\fC [inline]\fP, \fC [noexcept]\fP" .PP Release ownership of the owned pointer\&. .PP Definition at line 78 of file allocated_ptr\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.