Definition at line 865 of file bitmap_allocator.h.
|
Allocates memory for a single object of size sizeof(_Tp).
Definition at line 999 of file bitmap_allocator.h. References __gnu_cxx::balloc::__bit_allocate(), __gnu_cxx::balloc::__find_if(), __gnu_cxx::balloc::__num_bitmaps(), __gnu_cxx::_Bit_scan_forward(), _Bitmap_counter::_M_base(), _Bitmap_counter::_M_finished(), _Bitmap_counter::_M_get(), _Bitmap_counter::_M_offset(), _Bitmap_counter::_M_reset(), _Bitmap_counter::_M_where(), __mini_vector::begin(), __mini_vector::end(), and __mini_vector::size(). Referenced by bitmap_allocator::allocate(). |
|
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. Definition at line 1097 of file bitmap_allocator.h. References __gnu_cxx::balloc::__bit_free(), __gnu_cxx::balloc::__find_if(), __gnu_cxx::balloc::__num_bitmaps(), std::__rotate(), _BALLOC_ASSERT, free_list::_M_insert(), _Bitmap_counter::_M_reset(), _Bitmap_counter::_M_where(), __mini_vector::begin(), __mini_vector::end(), __mini_vector::erase(), and __mini_vector::size(). Referenced by bitmap_allocator::deallocate(). |