.TH "std::__allocated_ptr< _Alloc >" 3cxx "Tue Jul 18 2023" "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 "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\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::__allocated_ptr\fP< _Alloc >::__allocated_ptr (_Alloc & __a, pointer __ptr)\fC [inline]\fP, \fC [noexcept]\fP" .PP Take ownership of __ptr\&. .SS "template template>> \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 \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 \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 value_type * \fBstd::__allocated_ptr\fP< _Alloc >::get (void)\fC [inline]\fP" .PP Get the address that the owned pointer refers to\&. .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\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.