.TH "__gnu_cxx::_ExtPtr_allocator< _Tp >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_cxx::_ExtPtr_allocator< _Tp > \- An example allocator which uses a non-standard pointer type\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Types" .in +1c .ti -1c .RI "typedef \fB_Pointer_adapter\fP< \fB_Relative_pointer_impl\fP< const _Tp > > \fBconst_pointer\fP" .br .ti -1c .RI "typedef const _Tp & \fBconst_reference\fP" .br .ti -1c .RI "typedef \fBstd::ptrdiff_t\fP \fBdifference_type\fP" .br .ti -1c .RI "typedef \fB_Pointer_adapter\fP< \fB_Relative_pointer_impl\fP< _Tp > > \fBpointer\fP" .br .ti -1c .RI "typedef _Tp & \fBreference\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 "\fB_ExtPtr_allocator\fP (const \fB_ExtPtr_allocator\fP &__rarg) noexcept" .br .ti -1c .RI "template \fB_ExtPtr_allocator\fP (const \fB_ExtPtr_allocator\fP< _Up > &__rarg) noexcept" .br .ti -1c .RI "const \fBstd::allocator\fP< _Tp > & \fB_M_getUnderlyingImp\fP () const" .br .ti -1c .RI "\fBconst_pointer\fP \fBaddress\fP (const_reference __x) const noexcept" .br .ti -1c .RI "\fBpointer\fP \fBaddress\fP (reference __x) const noexcept" .br .ti -1c .RI "_GLIBCXX_NODISCARD \fBpointer\fP \fBallocate\fP (size_type __n, void *__hint=0)" .br .ti -1c .RI "template void \fBconstruct\fP (_Up *__p, _Args &&\&.\&.\&. __args)" .br .ti -1c .RI "template void \fBconstruct\fP (\fBpointer\fP __p, _Args &&\&.\&.\&. __args)" .br .ti -1c .RI "void \fBdeallocate\fP (\fBpointer\fP __p, size_type __n)" .br .ti -1c .RI "template void \fBdestroy\fP (_Up *__p)" .br .ti -1c .RI "void \fBdestroy\fP (\fBpointer\fP __p)" .br .ti -1c .RI "size_type \fBmax_size\fP () const noexcept" .br .ti -1c .RI "bool \fBoperator!=\fP (const \fB_ExtPtr_allocator\fP &__rarg)" .br .ti -1c .RI "template bool \fBoperator!=\fP (const \fB_ExtPtr_allocator\fP< _Up > &__rarg)" .br .ti -1c .RI "bool \fBoperator==\fP (const \fB_ExtPtr_allocator\fP &__rarg)" .br .ti -1c .RI "template bool \fBoperator==\fP (const \fB_ExtPtr_allocator\fP< _Up > &__rarg)" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "template void \fBswap\fP (\fB_ExtPtr_allocator\fP< _Up > &, \fB_ExtPtr_allocator\fP< _Up > &)" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class __gnu_cxx::_ExtPtr_allocator< _Tp >"An example allocator which uses a non-standard pointer type\&. This allocator specifies that containers use a 'relative pointer' as it's pointer type\&. (See ext/pointer\&.h) Memory allocation in this example is still performed using std::allocator\&. .PP Definition at line \fB56\fP of file \fBextptr_allocator\&.h\fP\&. .SH "Member Typedef Documentation" .PP .SS "template typedef \fB_Pointer_adapter\fP<\fB_Relative_pointer_impl\fP > \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::const_pointer" .PP Definition at line \fB65\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template typedef const _Tp& \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::const_reference" .PP Definition at line \fB68\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template typedef \fBstd::ptrdiff_t\fP \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::difference_type" .PP Definition at line \fB60\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template typedef \fB_Pointer_adapter\fP<\fB_Relative_pointer_impl\fP<_Tp> > \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::pointer" .PP Definition at line \fB63\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template typedef _Tp& \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::reference" .PP Definition at line \fB67\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template typedef std::size_t \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::size_type" .PP Definition at line \fB59\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template typedef _Tp \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::value_type" .PP Definition at line \fB69\fP of file \fBextptr_allocator\&.h\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::_ExtPtr_allocator ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB75\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::_ExtPtr_allocator (const \fB_ExtPtr_allocator\fP< _Tp > & __rarg)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB78\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template template \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::_ExtPtr_allocator (const \fB_ExtPtr_allocator\fP< _Up > & __rarg)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB82\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::~\fB_ExtPtr_allocator\fP ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB86\fP of file \fBextptr_allocator\&.h\fP\&. .SH "Member Function Documentation" .PP .SS "template const \fBstd::allocator\fP< _Tp > & \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::_M_getUnderlyingImp () const\fC [inline]\fP" .PP Definition at line \fB156\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template \fBconst_pointer\fP \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::address (const_reference __x) const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB92\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template \fBpointer\fP \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::address (reference __x) const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB89\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template _GLIBCXX_NODISCARD \fBpointer\fP \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::allocate (size_type __n, void * __hint = \fC0\fP)\fC [inline]\fP" .PP Definition at line \fB95\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template template void \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::construct (_Up * __p, _Args &&\&.\&.\&. __args)\fC [inline]\fP" .PP Definition at line \fB107\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template template void \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::construct (\fBpointer\fP __p, _Args &&\&.\&.\&. __args)\fC [inline]\fP" .PP Definition at line \fB112\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template void \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::deallocate (\fBpointer\fP __p, size_type __n)\fC [inline]\fP" .PP Definition at line \fB98\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template template void \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::destroy (_Up * __p)\fC [inline]\fP" .PP Definition at line \fB117\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template void \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::destroy (\fBpointer\fP __p)\fC [inline]\fP" .PP Definition at line \fB120\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template size_type \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::max_size () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB101\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template bool \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::operator!= (const \fB_ExtPtr_allocator\fP< _Tp > & __rarg)\fC [inline]\fP" .PP Definition at line \fB147\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template template bool \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::operator!= (const \fB_ExtPtr_allocator\fP< _Up > & __rarg)\fC [inline]\fP" .PP Definition at line \fB143\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template bool \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::operator== (const \fB_ExtPtr_allocator\fP< _Tp > & __rarg)\fC [inline]\fP" .PP Definition at line \fB138\fP of file \fBextptr_allocator\&.h\fP\&. .SS "template template bool \fB__gnu_cxx::_ExtPtr_allocator\fP< _Tp >::operator== (const \fB_ExtPtr_allocator\fP< _Up > & __rarg)\fC [inline]\fP" .PP Definition at line \fB134\fP of file \fBextptr_allocator\&.h\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.