.TH "__gnu_cxx::bitmap_allocator< _Tp >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_cxx::bitmap_allocator< _Tp > \- Bitmap Allocator, primary template\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fB__gnu_cxx::free_list\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef free_list::__mutex_type \fB__mutex_type\fP" .br .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 "\fBbitmap_allocator\fP (const \fBbitmap_allocator\fP &) noexcept" .br .ti -1c .RI "template \fBbitmap_allocator\fP (const \fBbitmap_allocator\fP< _Tp1 > &) noexcept" .br .ti -1c .RI "pointer \fB_M_allocate_single_object\fP ()" .br .RI "Allocates memory for a single object of size sizeof(_Tp)\&. " .ti -1c .RI "void \fB_M_deallocate_single_object\fP (pointer __p) throw ()" .br .RI "Deallocates memory that belongs to a single object of size sizeof(_Tp)\&. " .ti -1c .RI "const_pointer \fBaddress\fP (const_reference __r) const noexcept" .br .ti -1c .RI "pointer \fBaddress\fP (reference __r) const noexcept" .br .ti -1c .RI "_GLIBCXX_NODISCARD pointer \fBallocate\fP (size_type __n)" .br .ti -1c .RI "_GLIBCXX_NODISCARD pointer \fBallocate\fP (size_type __n, typename \fBbitmap_allocator\fP< void >::const_pointer)" .br .ti -1c .RI "template void \fBconstruct\fP (_Up *__p, _Args &&\&.\&.\&. __args)" .br .ti -1c .RI "void \fBdeallocate\fP (pointer __p, size_type __n) throw ()" .br .ti -1c .RI "template void \fBdestroy\fP (_Up *__p)" .br .ti -1c .RI "size_type \fBmax_size\fP () const noexcept" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class __gnu_cxx::bitmap_allocator< _Tp >"Bitmap Allocator, primary template\&. .PP Definition at line \fB684\fP of file \fBbitmap_allocator\&.h\fP\&. .SH "Member Typedef Documentation" .PP .SS "template typedef free_list::__mutex_type \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::__mutex_type" .PP Definition at line \fB694\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template typedef const _Tp* \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::const_pointer" .PP Definition at line \fB690\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template typedef const _Tp& \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::const_reference" .PP Definition at line \fB692\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template typedef ptrdiff_t \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::difference_type" .PP Definition at line \fB688\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template typedef _Tp* \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::pointer" .PP Definition at line \fB689\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template typedef \fBstd::true_type\fP \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::propagate_on_container_move_assignment" .PP Definition at line \fB705\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template typedef _Tp& \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::reference" .PP Definition at line \fB691\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template typedef size_t \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::size_type" .PP Definition at line \fB687\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template typedef _Tp \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::value_type" .PP Definition at line \fB693\fP of file \fBbitmap_allocator\&.h\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::bitmap_allocator ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB999\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::bitmap_allocator (const \fBbitmap_allocator\fP< _Tp > &)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB1002\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template template \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::bitmap_allocator (const \fBbitmap_allocator\fP< _Tp1 > &)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB1006\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::~\fBbitmap_allocator\fP ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB1009\fP of file \fBbitmap_allocator\&.h\fP\&. .SH "Member Function Documentation" .PP .SS "template pointer \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::_M_allocate_single_object ()\fC [inline]\fP" .PP Allocates memory for a single object of size sizeof(_Tp)\&. .PP \fBExceptions\fP .RS 4 \fIstd::bad_alloc\&.\fP If memory cannot be allocated\&. .RE .PP Complexity: Worst case complexity is O(N), but that is hardly ever hit\&. If and when this particular case is encountered, the next few cases are guaranteed to have a worst case complexity of O(1)! That's why this function performs very well on average\&. You can consider this function to have a complexity referred to commonly as: Amortized Constant time\&. .PP Definition at line \fB824\fP of file \fBbitmap_allocator\&.h\fP\&. .PP References \fB__gnu_cxx::__detail::__bit_allocate()\fP, \fB__gnu_cxx::__detail::__num_bitmaps()\fP, and \fB__gnu_cxx::_Bit_scan_forward()\fP\&. .SS "template void \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::_M_deallocate_single_object (pointer __p)\fC [inline]\fP" .PP Deallocates memory that belongs to a single object of size sizeof(_Tp)\&. Complexity: O(lg(N)), but the worst case is not hit often! This is because containers usually deallocate memory close to each other and this case is handled in O(1) time by the deallocate function\&. .PP Definition at line \fB914\fP of file \fBbitmap_allocator\&.h\fP\&. .PP References \fB__gnu_cxx::__detail::__bit_free()\fP, \fB__gnu_cxx::__detail::__num_bitmaps()\fP, and \fB__gnu_cxx::free_list::_M_insert()\fP\&. .SS "template const_pointer \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::address (const_reference __r) const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB1066\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template pointer \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::address (reference __r) const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB1062\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template _GLIBCXX_NODISCARD pointer \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::allocate (size_type __n)\fC [inline]\fP" .PP Definition at line \fB1013\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template _GLIBCXX_NODISCARD pointer \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::allocate (size_type __n, typename \fBbitmap_allocator\fP< void >::const_pointer)\fC [inline]\fP" .PP Definition at line \fB1037\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template template void \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::construct (_Up * __p, _Args &&\&.\&.\&. __args)\fC [inline]\fP" .PP Definition at line \fB1076\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template void \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::deallocate (pointer __p, size_type __n)\fC [inline]\fP" .PP Definition at line \fB1041\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template template void \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::destroy (_Up * __p)\fC [inline]\fP" .PP Definition at line \fB1081\fP of file \fBbitmap_allocator\&.h\fP\&. .SS "template size_type \fB__gnu_cxx::bitmap_allocator\fP< _Tp >::max_size () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB1070\fP of file \fBbitmap_allocator\&.h\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.