Provided by: libstdc++-10-doc_10.5.0-1ubuntu1~22.04.2_all 

NAME
std::__allocated_ptr< _Alloc > - Non-standard RAII type for managing pointers obtained from allocators.
SYNOPSIS
Public Types
using pointer = typename allocator_traits< _Alloc >::pointer
using value_type = typename allocator_traits< _Alloc >::value_type
Public Member Functions
__allocated_ptr (__allocated_ptr &&__gd) noexcept
Transfer ownership of the owned pointer.
template<typename _Ptr , typename _Req = _Require<is_same<_Ptr, value_type*>>> __allocated_ptr (_Alloc
&__a, _Ptr __ptr)
Convert __ptr to allocator's pointer type and take ownership of it.
__allocated_ptr (_Alloc &__a, pointer __ptr) noexcept
Take ownership of __ptr.
~__allocated_ptr ()
Deallocate the owned pointer.
value_type * get ()
Get the address that the owned pointer refers to.
__allocated_ptr & operator= (std::nullptr_t) noexcept
Release ownership of the owned pointer.
Detailed Description
template<typename _Alloc>
struct std::__allocated_ptr< _Alloc >" Non-standard RAII type for managing pointers obtained from
allocators.
Constructor & Destructor Documentation
template<typename _Alloc > std::__allocated_ptr< _Alloc >::__allocated_ptr (_Alloc & __a, pointer __ptr)
[inline], [noexcept]
Take ownership of __ptr.
template<typename _Alloc > template<typename _Ptr , typename _Req = _Require<is_same<_Ptr, value_type*>>>
std::__allocated_ptr< _Alloc >::__allocated_ptr (_Alloc & __a, _Ptr __ptr) [inline]
Convert __ptr to allocator's pointer type and take ownership of it.
template<typename _Alloc > std::__allocated_ptr< _Alloc >::__allocated_ptr (__allocated_ptr< _Alloc > &&
__gd) [inline], [noexcept]
Transfer ownership of the owned pointer.
template<typename _Alloc > std::__allocated_ptr< _Alloc >::~__allocated_ptr () [inline]
Deallocate the owned pointer.
References std::allocator_traits< _Alloc >::deallocate().
Member Function Documentation
template<typename _Alloc > value_type* std::__allocated_ptr< _Alloc >::get (void) [inline]
Get the address that the owned pointer refers to.
template<typename _Alloc > __allocated_ptr& std::__allocated_ptr< _Alloc >::operator= (std::nullptr_t)
[inline], [noexcept]
Release ownership of the owned pointer.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Apr 22 2025 std::__allocated_ptr< _Alloc >(3cxx)