.TH "std::allocator< _Tp >" 3cxx "Sun Jan 8 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::allocator< _Tp > \- The \fIstandard\fP allocator, as per C++03 [20\&.4\&.1]\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBstd::__new_allocator< _Tp >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef ptrdiff_t \fBdifference_type\fP" .br .ti -1c .RI "using \fBis_always_equal\fP = \fBtrue_type\fP" .br .ti -1c .RI "using \fBpropagate_on_container_move_assignment\fP = \fBtrue_type\fP" .br .ti -1c .RI "typedef size_t \fBsize_type\fP" .br .ti -1c .RI "typedef _Tp \fBvalue_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "constexpr \fBallocator\fP (const \fBallocator\fP &__a) noexcept" .br .ti -1c .RI "template constexpr \fBallocator\fP (const \fBallocator\fP< _Tp1 > &) noexcept" .br .ti -1c .RI "constexpr _Tp * \fBallocate\fP (size_t __n)" .br .ti -1c .RI "_Tp * \fBallocate\fP (size_type __n, const void *=static_cast< const void * >(0))" .br .ti -1c .RI "constexpr void \fBdeallocate\fP (_Tp *__p, size_t __n)" .br .ti -1c .RI "\fBallocator\fP & \fBoperator=\fP (const \fBallocator\fP &)=default" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "constexpr bool \fBoperator==\fP (const \fBallocator\fP &, const \fBallocator\fP &) noexcept" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::allocator< _Tp >"The \fIstandard\fP allocator, as per C++03 [20\&.4\&.1]\&. 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 \fB124\fP of file \fBmemory\fP\&. .SH "Member Typedef Documentation" .PP .SS "template typedef ptrdiff_t \fBstd::allocator\fP< _Tp >::difference_type" .PP Definition at line \fB129\fP of file \fBmemory\fP\&. .SS "template using \fBstd::allocator\fP< _Tp >::is_always_equal = \fBtrue_type\fP" .PP Definition at line \fB148\fP of file \fBmemory\fP\&. .SS "template using \fBstd::allocator\fP< _Tp >::propagate_on_container_move_assignment = \fBtrue_type\fP" .PP Definition at line \fB146\fP of file \fBmemory\fP\&. .SS "template typedef size_t \fBstd::allocator\fP< _Tp >::size_type" .PP Definition at line \fB128\fP of file \fBmemory\fP\&. .SS "template typedef _Tp \fBstd::allocator\fP< _Tp >::value_type" .PP Definition at line \fB127\fP of file \fBmemory\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template constexpr \fBstd::allocator\fP< _Tp >::allocator ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB156\fP of file \fBmemory\fP\&. .SS "template constexpr \fBstd::allocator\fP< _Tp >::allocator (const \fBallocator\fP< _Tp > & __a)\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB159\fP of file \fBmemory\fP\&. .SS "template template constexpr \fBstd::allocator\fP< _Tp >::allocator (const \fBallocator\fP< _Tp1 > &)\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB169\fP of file \fBmemory\fP\&. .SS "template constexpr \fBstd::allocator\fP< _Tp >::~\fBallocator\fP ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB174\fP of file \fBmemory\fP\&. .SH "Member Function Documentation" .PP .SS "template constexpr _Tp * \fBstd::allocator\fP< _Tp >::allocate (size_t __n)\fC [inline]\fP, \fC [constexpr]\fP" .PP Definition at line \fB179\fP of file \fBmemory\fP\&. .SS "template _Tp * \fBstd::__new_allocator\fP< _Tp >::allocate (size_type __n, const void * = \fCstatic_cast(0)\fP)\fC [inline]\fP, \fC [inherited]\fP" .PP Definition at line \fB112\fP of file \fBbits/new_memory\fP\&. .SS "template constexpr void \fBstd::allocator\fP< _Tp >::deallocate (_Tp * __p, size_t __n)\fC [inline]\fP, \fC [constexpr]\fP" .PP Definition at line \fB193\fP of file \fBmemory\fP\&. .SH "Friends And Related Function Documentation" .PP .SS "template constexpr bool operator== (const \fBallocator\fP< _Tp > &, const \fBallocator\fP< _Tp > &)\fC [friend]\fP" .PP Definition at line \fB205\fP of file \fBmemory\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.