.TH "__gnu_cxx::bitmap_allocator< _Tp >" 3cxx "Sat Feb 8 2020" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_cxx::bitmap_allocator< _Tp > \- Bitmap Allocator, primary template\&. .SH SYNOPSIS .br .PP .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 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 "pointer \fBallocate\fP (size_type __n)" .br .ti -1c .RI "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 .SS "Public Attributes" .in +1c .ti -1c .RI "const typedef _Tp * \fBconst_pointer\fP" .br .ti -1c .RI "const typedef _Tp & \fBconst_reference\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class __gnu_cxx::bitmap_allocator< _Tp >" Bitmap Allocator, primary template\&. .PP Definition at line 663 of file bitmap_allocator\&.h\&. .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 can not 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 827 of file bitmap_allocator\&.h\&. .PP References __gnu_cxx::__detail::__bit_allocate(), __gnu_cxx::__detail::__num_bitmaps(), and __gnu_cxx::_Bit_scan_forward()\&. .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 917 of file bitmap_allocator\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.