.TH "__gnu_cxx::new_allocator< _Tp >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_cxx::new_allocator< _Tp > \- An allocator that uses global new, as per [20\&.4]\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherited by \fBstd::allocator< value_type >\fP, and \fBstd::allocator< _Tp >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef const _Tp * \fBconst_pointer\fP" .br .ti -1c .RI "typedef const _Tp & \fBconst_reference\fP" .br .ti -1c .RI "typedef ptrdiff_t \fBdifference_type\fP" .br .ti -1c .RI "typedef _Tp * \fBpointer\fP" .br .ti -1c .RI "typedef \fBstd::true_type\fP \fBpropagate_on_container_move_assignment\fP" .br .ti -1c .RI "typedef _Tp & \fBreference\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 "_GLIBCXX20_CONSTEXPR \fBnew_allocator\fP (const \fBnew_allocator\fP &) noexcept" .br .ti -1c .RI "template _GLIBCXX20_CONSTEXPR \fBnew_allocator\fP (const \fBnew_allocator\fP< _Tp1 > &) noexcept" .br .ti -1c .RI "const_pointer \fBaddress\fP (const_reference __x) const noexcept" .br .ti -1c .RI "pointer \fBaddress\fP (reference __x) const noexcept" .br .ti -1c .RI "_GLIBCXX_NODISCARD pointer \fBallocate\fP (size_type __n, const void *=static_cast< const void * >(0))" .br .ti -1c .RI "template void \fBconstruct\fP (_Up *__p, _Args &&\&.\&.\&. __args) noexcept(\fBstd::is_nothrow_constructible\fP< _Up, _Args\&.\&.\&. >::value)" .br .ti -1c .RI "void \fBdeallocate\fP (pointer __p, size_type)" .br .ti -1c .RI "template void \fBdestroy\fP (_Up *__p) noexcept(\fBstd::is_nothrow_destructible\fP< _Up >::value)" .br .ti -1c .RI "size_type \fBmax_size\fP () const noexcept" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "template bool \fBoperator!=\fP (const \fBnew_allocator\fP &, const \fBnew_allocator\fP< _Up > &) noexcept" .br .ti -1c .RI "template bool \fBoperator==\fP (const \fBnew_allocator\fP &, const \fBnew_allocator\fP< _Up > &) noexcept" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class __gnu_cxx::new_allocator< _Tp >"An allocator that uses global new, as per [20\&.4]\&. This is precisely the allocator defined in the C++ Standard\&. .IP "\(bu" 2 all allocation calls operator new .IP "\(bu" 2 all deallocation calls operator delete .PP .PP \fBTemplate Parameters\fP .RS 4 \fI_Tp\fP Type of allocated object\&. .RE .PP .PP Definition at line \fB58\fP of file \fBnew_allocator\&.h\fP\&. .SH "Member Typedef Documentation" .PP .SS "template typedef const _Tp* \fB__gnu_cxx::new_allocator\fP< _Tp >::const_pointer" .PP Definition at line \fB64\fP of file \fBnew_allocator\&.h\fP\&. .SS "template typedef const _Tp& \fB__gnu_cxx::new_allocator\fP< _Tp >::const_reference" .PP Definition at line \fB66\fP of file \fBnew_allocator\&.h\fP\&. .SS "template typedef ptrdiff_t \fB__gnu_cxx::new_allocator\fP< _Tp >::difference_type" .PP Definition at line \fB62\fP of file \fBnew_allocator\&.h\fP\&. .SS "template typedef _Tp* \fB__gnu_cxx::new_allocator\fP< _Tp >::pointer" .PP Definition at line \fB63\fP of file \fBnew_allocator\&.h\fP\&. .SS "template typedef \fBstd::true_type\fP \fB__gnu_cxx::new_allocator\fP< _Tp >::propagate_on_container_move_assignment" .PP Definition at line \fB76\fP of file \fBnew_allocator\&.h\fP\&. .SS "template typedef _Tp& \fB__gnu_cxx::new_allocator\fP< _Tp >::reference" .PP Definition at line \fB65\fP of file \fBnew_allocator\&.h\fP\&. .SS "template typedef size_t \fB__gnu_cxx::new_allocator\fP< _Tp >::size_type" .PP Definition at line \fB61\fP of file \fBnew_allocator\&.h\fP\&. .SS "template typedef _Tp \fB__gnu_cxx::new_allocator\fP< _Tp >::value_type" .PP Definition at line \fB67\fP of file \fBnew_allocator\&.h\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template _GLIBCXX20_CONSTEXPR \fB__gnu_cxx::new_allocator\fP< _Tp >::new_allocator ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB80\fP of file \fBnew_allocator\&.h\fP\&. .SS "template _GLIBCXX20_CONSTEXPR \fB__gnu_cxx::new_allocator\fP< _Tp >::new_allocator (const \fBnew_allocator\fP< _Tp > &)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB83\fP of file \fBnew_allocator\&.h\fP\&. .SS "template template _GLIBCXX20_CONSTEXPR \fB__gnu_cxx::new_allocator\fP< _Tp >::new_allocator (const \fBnew_allocator\fP< _Tp1 > &)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB87\fP of file \fBnew_allocator\&.h\fP\&. .SS "template \fB__gnu_cxx::new_allocator\fP< _Tp >::~\fBnew_allocator\fP ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB89\fP of file \fBnew_allocator\&.h\fP\&. .SH "Member Function Documentation" .PP .SS "template const_pointer \fB__gnu_cxx::new_allocator\fP< _Tp >::address (const_reference __x) const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB96\fP of file \fBnew_allocator\&.h\fP\&. .SS "template pointer \fB__gnu_cxx::new_allocator\fP< _Tp >::address (reference __x) const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB92\fP of file \fBnew_allocator\&.h\fP\&. .SS "template _GLIBCXX_NODISCARD pointer \fB__gnu_cxx::new_allocator\fP< _Tp >::allocate (size_type __n, const void * = \fCstatic_cast(0)\fP)\fC [inline]\fP" .PP Definition at line \fB102\fP of file \fBnew_allocator\&.h\fP\&. .SS "template template void \fB__gnu_cxx::new_allocator\fP< _Tp >::construct (_Up * __p, _Args &&\&.\&.\&. __args)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB144\fP of file \fBnew_allocator\&.h\fP\&. .SS "template void \fB__gnu_cxx::new_allocator\fP< _Tp >::deallocate (pointer __p, size_type)\fC [inline]\fP" .PP Definition at line \fB119\fP of file \fBnew_allocator\&.h\fP\&. .SS "template template void \fB__gnu_cxx::new_allocator\fP< _Tp >::destroy (_Up * __p)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB150\fP of file \fBnew_allocator\&.h\fP\&. .SS "template size_type \fB__gnu_cxx::new_allocator\fP< _Tp >::max_size () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB132\fP of file \fBnew_allocator\&.h\fP\&. .SH "Friends And Related Symbol Documentation" .PP .SS "template template bool operator!= (const \fBnew_allocator\fP< _Tp > &, const \fBnew_allocator\fP< _Up > &)\fC [friend]\fP" .PP Definition at line \fB172\fP of file \fBnew_allocator\&.h\fP\&. .SS "template template bool operator== (const \fBnew_allocator\fP< _Tp > &, const \fBnew_allocator\fP< _Up > &)\fC [friend]\fP" .PP Definition at line \fB166\fP of file \fBnew_allocator\&.h\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.