Public Types | |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
typedef Type * | pointer |
typedef const Type * | const_pointer |
typedef Type & | reference |
typedef const Type & | const_reference |
typedef Type | value_type |
Public Member Functions | |
__pool_alloc () throw () | |
__pool_alloc (const __pool_alloc &) throw () | |
template<typename Type1> | |
__pool_alloc (const __pool_alloc< Type1 > &) throw () | |
~__pool_alloc () throw () | |
pointer | address (reference x) const |
const_pointer | address (const_reference x) const |
size_type | max_size () const throw () |
void | construct (pointer __p, const Type &__val) |
void | destroy (pointer __p) |
pointer | allocate (size_type n, const void *=0) |
void | deallocate (pointer __p, size_type n) |
Private Types | |
enum | { S_align } |
enum | { S_max_bytes } |
enum | { S_free_list_size } |
Private Member Functions | |
size_t | M_round_up (size_t __bytes) |
Obj *volatile * | M_get_free_list (size_t __bytes) |
mutex_type & | M_get_mutex () |
void * | M_refill (size_t n) |
char * | M_allocate_chunk (size_t n, int &nobjs) |
Static Private Attributes | |
static Atomic_word | S_force_new |
static Obj *volatile | S_free_list [S_free_list_size] |
static char * | S_start_free |
static char * | S_end_free |
static size_t | S_heap_size |
Classes | |
struct | rebind |
Definition at line 120 of file pool_allocator.h.
anonymous enum [protected, inherited] |
anonymous enum [protected, inherited] |
anonymous enum [protected, inherited] |