.TH "__gnu_cxx::malloc_allocator< _Tp >" 3cxx "Sun Jan 8 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_cxx::malloc_allocator< _Tp > \- An allocator that uses malloc\&. .SH SYNOPSIS .br .PP .PP \fC#include \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 \fBmalloc_allocator\fP (const \fBmalloc_allocator\fP &) noexcept" .br .ti -1c .RI "template constexpr \fBmalloc_allocator\fP (const \fBmalloc_allocator\fP< _Tp1 > &) noexcept" .br .ti -1c .RI "_Tp * \fBallocate\fP (size_type __n, const void *=0)" .br .ti -1c .RI "void \fBdeallocate\fP (_Tp *__p, size_type)" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "template constexpr bool \fBoperator==\fP (const \fBmalloc_allocator\fP &, const \fBmalloc_allocator\fP< _Up > &) noexcept" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class __gnu_cxx::malloc_allocator< _Tp >"An allocator that uses malloc\&. This is precisely the allocator defined in the C++ Standard\&. .IP "\(bu" 2 all allocation calls malloc .IP "\(bu" 2 all deallocation calls free .PP .PP Definition at line \fB54\fP of file \fBmalloc_allocator\&.h\fP\&. .SH "Member Typedef Documentation" .PP .SS "template typedef std::ptrdiff_t \fB__gnu_cxx::malloc_allocator\fP< _Tp >::difference_type" .PP Definition at line \fB59\fP of file \fBmalloc_allocator\&.h\fP\&. .SS "template typedef \fBstd::true_type\fP \fB__gnu_cxx::malloc_allocator\fP< _Tp >::propagate_on_container_move_assignment" .PP Definition at line \fB74\fP of file \fBmalloc_allocator\&.h\fP\&. .SS "template typedef std::size_t \fB__gnu_cxx::malloc_allocator\fP< _Tp >::size_type" .PP Definition at line \fB58\fP of file \fBmalloc_allocator\&.h\fP\&. .SS "template typedef _Tp \fB__gnu_cxx::malloc_allocator\fP< _Tp >::value_type" .PP Definition at line \fB57\fP of file \fBmalloc_allocator\&.h\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template constexpr \fB__gnu_cxx::malloc_allocator\fP< _Tp >::malloc_allocator ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB78\fP of file \fBmalloc_allocator\&.h\fP\&. .SS "template constexpr \fB__gnu_cxx::malloc_allocator\fP< _Tp >::malloc_allocator (const \fBmalloc_allocator\fP< _Tp > &)\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB81\fP of file \fBmalloc_allocator\&.h\fP\&. .SS "template template constexpr \fB__gnu_cxx::malloc_allocator\fP< _Tp >::malloc_allocator (const \fBmalloc_allocator\fP< _Tp1 > &)\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB85\fP of file \fBmalloc_allocator\&.h\fP\&. .SH "Member Function Documentation" .PP .SS "template _Tp * \fB__gnu_cxx::malloc_allocator\fP< _Tp >::allocate (size_type __n, const void * = \fC0\fP)\fC [inline]\fP" .PP Definition at line \fB103\fP of file \fBmalloc_allocator\&.h\fP\&. .SS "template void \fB__gnu_cxx::malloc_allocator\fP< _Tp >::deallocate (_Tp * __p, size_type)\fC [inline]\fP" .PP Definition at line \fB150\fP of file \fBmalloc_allocator\&.h\fP\&. .SH "Friends And Related Function Documentation" .PP .SS "template template constexpr bool operator== (const \fBmalloc_allocator\fP< _Tp > &, const \fBmalloc_allocator\fP< _Up > &)\fC [friend]\fP" .PP Definition at line \fB184\fP of file \fBmalloc_allocator\&.h\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.