__gnu_cxx::bitmap_allocator - Online Linux Manual PageSection : 3
Updated : 19 Jun 2018
Source : libstdc++

NAME__gnu_cxx::bitmap_allocator − Bitmap Allocator, primary template.

SYNOPSIS
Inherits __gnu_cxx::free_list.

Public Typestypedef free_list::__mutex_type __mutex_type
typedef const _Tp * const_pointer
typedef const _Tp & const_reference
typedef ptrdiff_t difference_type
typedef _Tp * pointer
typedef _Tp & reference
typedef size_t size_type
typedef _Tp value_type

Public Member Functionspointer _M_allocate_single_object () throw (std::bad_alloc)
void _M_deallocate_single_object (pointer __p) throw ()
const_pointer address (const_reference __r) const
pointer address (reference __r) const
pointer allocate (size_type __n, typename bitmap_allocator< void >::const_pointer)
pointer allocate (size_type __n)
template<typename _Tp1 > bitmap_allocator (const bitmap_allocator< _Tp1 > &) throw ()
bitmap_allocator (const bitmap_allocator &)
template<typename... _Args> void construct (pointer __p, _Args &&...__args)
void construct (pointer __p, const_reference __data)
void deallocate (pointer __p, size_type __n) throw ()
void destroy (pointer __p)
size_type max_size () const throw ()

Private Member Functionsvoid _M_clear ()
size_t * _M_get (size_t __sz) throw (std::bad_alloc)
void _M_insert (size_t *__addr) throw ()

Detailed Description

template<typename _Tp> class __gnu_cxx::bitmap_allocator< _Tp >Bitmap Allocator, primary template. Definition at line 710 of file bitmap_allocator.h.

Member Function Documentation

template<typename _Tp> pointer __gnu_cxx::bitmap_allocator< _Tp >::_M_allocate_single_object () throw (std::bad_alloc) [inline]Allocates memory for a single object of size sizeof(_Tp). Exceptions: std::bad_alloc. If memory can not be allocated. 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. Definition at line 846 of file bitmap_allocator.h. References __gnu_cxx::__detail::__bit_allocate(), __gnu_cxx::__detail::__num_bitmaps(), and __gnu_cxx::_Bit_scan_forward().

template<typename _Tp> void __gnu_cxx::bitmap_allocator< _Tp >::_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 944 of file bitmap_allocator.h. References __gnu_cxx::__detail::__bit_free(), __gnu_cxx::__detail::__num_bitmaps(), and std::__rotate().

AuthorGenerated automatically by Doxygen for libstdc++ from the source code.
0
Johanes Gumabo
Data Size   :   15,708 byte
man-__gnu_cxx::bitmap_allocator.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 164,983
Visitor ID   :     :  
Visitor IP   :   3.145.43.200   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.