Definition at line 865 of file bitmap_allocator.h.
pointer _M_allocate_single_object | ( | ) | throw (std::bad_alloc) [inline] |
Allocates memory for a single object of size sizeof(_Tp).
std::bad_alloc. | If memory can not be allocated. |
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(), __mini_vector::begin(), __mini_vector::end(), and __mini_vector::size().
Referenced by bitmap_allocator::allocate().
void _M_deallocate_single_object | ( | pointer | __p | ) | throw () [inline] |
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(), __mini_vector::begin(), __mini_vector::end(), __mini_vector::erase(), and __mini_vector::size().
Referenced by bitmap_allocator::deallocate().