.TH "std::__new_allocator< _Tp >" 3 "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::__new_allocator< _Tp > \- An allocator that uses global \fRnew\fP, as per C++03 [20\&.4\&.1]\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherited by \fBstd::allocator< value_type >\fP, \fBstd::allocator< _Tp >\fP, \fB__gnu_cxx::new_allocator< _Tp >\fP, and \fBstd::allocator< typename >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef std::ptrdiff_t \fBdifference_type\fP" .br .ti -1c .RI "typedef \fBstd::true_type\fP \fBpropagate_on_container_move_assignment\fP" .br .ti -1c .RI "typedef std::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 \fB__new_allocator\fP (const \fB__new_allocator\fP &) noexcept" .br .ti -1c .RI "template constexpr \fB__new_allocator\fP (const \fB__new_allocator\fP< _Tp1 > &) noexcept" .br .ti -1c .RI "_Tp * \fBallocate\fP (size_type __n, const void *=static_cast< const void * >(0))" .br .ti -1c .RI "void \fBdeallocate\fP (_Tp *__p, size_type __n)" .br .ti -1c .RI "\fB__new_allocator\fP & \fBoperator=\fP (const \fB__new_allocator\fP &)=default" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "template constexpr bool \fBoperator==\fP (const \fB__new_allocator\fP &, const \fB__new_allocator\fP< _Up > &) noexcept" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::__new_allocator< _Tp >"An allocator that uses global \fRnew\fP, as per C++03 [20\&.4\&.1]\&. This is precisely the allocator defined in the C++ Standard\&. .IP "\(bu" 2 all allocation calls \fRoperator new\fP .IP "\(bu" 2 all deallocation calls \fRoperator delete\fP .PP .PP This is the default base-class implementation of \fRstd::allocator\fP, and is also the base-class of the \fR__gnu_cxx::new_allocator\fP extension\&. You should use either \fRstd::allocator\fP or \fR__gnu_cxx::new_allocator\fP instead of using this directly\&. .PP \fBTemplate Parameters\fP .RS 4 \fI_Tp\fP Type of allocated object\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.