.TH "std::allocator< _Tp >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::allocator< _Tp > \- The \fIstandard\fP allocator, as per [20\&.4]\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fB__gnu_cxx::new_allocator< _Tp >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "\fBtypedef\fP \fBconst\fP _Tp * \fBconst_pointer\fP" .br .ti -1c .RI "\fBtypedef\fP \fBconst\fP _Tp & \fBconst_reference\fP" .br .ti -1c .RI "\fBtypedef\fP \fBptrdiff_t\fP \fBdifference_type\fP" .br .ti -1c .RI "\fBtypedef\fP \fBtrue_type\fP \fBis_always_equal\fP" .br .ti -1c .RI "\fBtypedef\fP _Tp * \fBpointer\fP" .br .ti -1c .RI "\fBtypedef\fP \fBtrue_type\fP \fBpropagate_on_container_move_assignment\fP" .br .ti -1c .RI "\fBtypedef\fP _Tp & \fBreference\fP" .br .ti -1c .RI "\fBtypedef\fP size_t \fBsize_type\fP" .br .ti -1c .RI "\fBtypedef\fP _Tp \fBvalue_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "_GLIBCXX20_CONSTEXPR \fBallocator\fP (\fBconst\fP \fBallocator\fP &__a) \fBnoexcept\fP" .br .ti -1c .RI "template<\fBtypename\fP \fB_Tp1\fP > _GLIBCXX20_CONSTEXPR \fBallocator\fP (\fBconst\fP \fBallocator\fP< \fB_Tp1\fP > &) \fBnoexcept\fP" .br .ti -1c .RI "const_pointer \fBaddress\fP (const_reference __x) \fBconst\fP \fBnoexcept\fP" .br .ti -1c .RI "pointer \fBaddress\fP (reference __x) \fBconst\fP \fBnoexcept\fP" .br .ti -1c .RI "_GLIBCXX_NODISCARD pointer \fBallocate\fP (size_type __n, \fBconst\fP \fBvoid\fP *=\fBstatic_cast\fP< \fBconst\fP \fBvoid\fP * >(0))" .br .ti -1c .RI "template<\fBtypename\fP \fB_Up\fP , typename\&.\&.\&. _Args> \fBvoid\fP \fBconstruct\fP (\fB_Up\fP *__p, \fB_Args\fP &&\&.\&.\&. \fB__args\fP) \fBnoexcept\fP(\fBstd::is_nothrow_constructible\fP< \fB_Up\fP, _Args\&.\&.\&. >::value)" .br .ti -1c .RI "\fBvoid\fP \fBdeallocate\fP (pointer __p, size_type)" .br .ti -1c .RI "template<\fBtypename\fP \fB_Up\fP > \fBvoid\fP \fBdestroy\fP (\fB_Up\fP *__p) \fBnoexcept\fP(\fBstd::is_nothrow_destructible\fP< \fB_Up\fP >::value)" .br .ti -1c .RI "size_type \fBmax_size\fP () \fBconst\fP \fBnoexcept\fP" .br .ti -1c .RI "\fBallocator\fP & \fBoperator=\fP (\fBconst\fP \fBallocator\fP &)=\fBdefault\fP" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "bool \fBoperator!=\fP (\fBconst\fP \fBallocator\fP &, \fBconst\fP \fBallocator\fP &) \fBnoexcept\fP" .br .ti -1c .RI "bool \fBoperator==\fP (\fBconst\fP \fBallocator\fP &, \fBconst\fP \fBallocator\fP &) \fBnoexcept\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template<\fBtypename\fP _Tp> .br class std::allocator< _Tp >"The \fIstandard\fP allocator, as per [20\&.4]\&. See https://gcc.gnu.org/onlinedocs/libstdc++/manual/memory.html#std.util.memory.allocator for further details\&. .PP \fBTemplate Parameters\fP .RS 4 \fI_Tp\fP Type of allocated object\&. .RE .PP .PP Definition at line \fB111\fP of file \fBallocator\&.h\fP\&. .SH "Member Typedef Documentation" .PP .SS "template<\fBtypename\fP _Tp > \fBtypedef\fP \fBconst\fP _Tp* \fBstd::allocator\fP< _Tp >::const_pointer" .PP Definition at line \fB117\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > \fBtypedef\fP \fBconst\fP _Tp& \fBstd::allocator\fP< _Tp >::const_reference" .PP Definition at line \fB119\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > \fBtypedef\fP \fBptrdiff_t\fP \fBstd::allocator\fP< _Tp >::difference_type" .PP Definition at line \fB115\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > \fBtypedef\fP \fBtrue_type\fP \fBstd::allocator\fP< _Tp >::is_always_equal" .PP Definition at line \fB131\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > \fBtypedef\fP _Tp* \fBstd::allocator\fP< _Tp >::pointer" .PP Definition at line \fB116\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > \fBtypedef\fP \fBtrue_type\fP \fBstd::allocator\fP< _Tp >::propagate_on_container_move_assignment" .PP Definition at line \fB129\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > \fBtypedef\fP _Tp& \fBstd::allocator\fP< _Tp >::reference" .PP Definition at line \fB118\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > \fBtypedef\fP size_t \fBstd::allocator\fP< _Tp >::size_type" .PP Definition at line \fB114\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > \fBtypedef\fP _Tp \fBstd::allocator\fP< _Tp >::value_type" .PP Definition at line \fB120\fP of file \fBallocator\&.h\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template<\fBtypename\fP _Tp > _GLIBCXX20_CONSTEXPR \fBstd::allocator\fP< _Tp >::allocator ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB137\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > _GLIBCXX20_CONSTEXPR \fBstd::allocator\fP< _Tp >::allocator (\fBconst\fP \fBallocator\fP< _Tp > & __a)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB140\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > template<\fBtypename\fP \fB_Tp1\fP > _GLIBCXX20_CONSTEXPR \fBstd::allocator\fP< _Tp >::allocator (\fBconst\fP \fBallocator\fP< \fB_Tp1\fP > &)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB150\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > \fBstd::allocator\fP< _Tp >::~\fBallocator\fP ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB152\fP of file \fBallocator\&.h\fP\&. .SH "Member Function Documentation" .PP .SS "template<\fBtypename\fP _Tp > const_pointer \fB__gnu_cxx::new_allocator\fP< _Tp >::address (const_reference __x) const\fC [inline]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" .PP Definition at line \fB96\fP of file \fBnew_allocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > pointer \fB__gnu_cxx::new_allocator\fP< _Tp >::address (reference __x) const\fC [inline]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" .PP Definition at line \fB92\fP of file \fBnew_allocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > _GLIBCXX_NODISCARD pointer \fB__gnu_cxx::new_allocator\fP< _Tp >::allocate (size_type __n, const void * = \fCstatic_cast(0)\fP)\fC [inline]\fP, \fC [inherited]\fP" .PP Definition at line \fB102\fP of file \fBnew_allocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > template<\fBtypename\fP \fB_Up\fP , typename\&.\&.\&. _Args> \fBvoid\fP \fB__gnu_cxx::new_allocator\fP< _Tp >::construct (_Up * __p, _Args &&\&.\&.\&. __args)\fC [inline]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" .PP Definition at line \fB144\fP of file \fBnew_allocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > \fBvoid\fP \fB__gnu_cxx::new_allocator\fP< _Tp >::deallocate (pointer __p, size_type)\fC [inline]\fP, \fC [inherited]\fP" .PP Definition at line \fB119\fP of file \fBnew_allocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > template<\fBtypename\fP \fB_Up\fP > \fBvoid\fP \fB__gnu_cxx::new_allocator\fP< _Tp >::destroy (_Up * __p)\fC [inline]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" .PP Definition at line \fB150\fP of file \fBnew_allocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > size_type \fB__gnu_cxx::new_allocator\fP< _Tp >::max_size () const\fC [inline]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" .PP Definition at line \fB132\fP of file \fBnew_allocator\&.h\fP\&. .SH "Friends And Related Symbol Documentation" .PP .SS "template<\fBtypename\fP _Tp > bool operator!= (\fBconst\fP \fBallocator\fP< _Tp > &, \fBconst\fP \fBallocator\fP< _Tp > &)\fC [friend]\fP" .PP Definition at line \fB159\fP of file \fBallocator\&.h\fP\&. .SS "template<\fBtypename\fP _Tp > bool \fBoperator\fP== (\fBconst\fP \fBallocator\fP< _Tp > &, \fBconst\fP \fBallocator\fP< _Tp > &)\fC [friend]\fP" .PP Definition at line \fB155\fP of file \fBallocator\&.h\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.