per_thread_allocator Class Reference

class per_thread_allocator

Nested Classes and Structures

Public Member Functions
per_thread_allocator()
per_thread_allocator(const per_thread_allocator< _Tp > &)
per_thread_allocator(const per_thread_allocator< _OtherType > &)
~per_thread_allocator()
pointer address(reference)
const_pointer address(const_reference)
_Tp *allocate(size_type, const void *)
_Tp *allocate(size_type, size_type &)
voidconstruct(pointer, const _Tp &)
voiddeallocate(pointer, size_type)
voiddestroy(pointer)
size_type max_size()
Public Member Type Definitions
typedefconst _Tp * const_pointer
typedefconst _Tp & const_reference
typedef ptrdiff_t difference_type
typedef_Tp * pointer
typedef_Tp & reference
typedef size_t size_type
typedef_Tp value_type
Private Member Type Definitions
typedef pthread_alloc _S_Alloc
typedefpthread_alloc::__state_type __state_type
Public Attributes
__state_type *_M_state

Constructor & Destructor Documentation

per_thread_allocator()

per_thread_allocator()[inline]

per_thread_allocator(const per_thread_allocator< _Tp > &)

per_thread_allocator(const per_thread_allocator< _Tp > &__a)[inline]

Parameters

const per_thread_allocator< _Tp > & __a

per_thread_allocator(const per_thread_allocator< _OtherType > &)

per_thread_allocator(const per_thread_allocator< _OtherType > &__a)[inline]

Parameters

const per_thread_allocator< _OtherType > & __a

~per_thread_allocator()

~per_thread_allocator()[inline]

Member Functions Documentation

address(reference)

pointer address(reference__x)const [inline]

Parameters

reference __x

address(const_reference)

const_pointer address(const_reference__x)const [inline]

Parameters

const_reference __x

allocate(size_type, const void *)

_Tp *allocate(size_type__n,
const void * = 0
)[inline]

Parameters

size_type __n
const void *  = 0

allocate(size_type, size_type &)

_Tp *allocate(size_type__n,
size_type &__allocated_n
)[inline]

Parameters

size_type __n
size_type & __allocated_n

construct(pointer, const _Tp &)

voidconstruct(pointer__p,
const _Tp &__val
)[inline]

Parameters

pointer __p
const _Tp & __val

deallocate(pointer, size_type)

voiddeallocate(pointer__p,
size_type__n
)[inline]

Parameters

pointer __p
size_type __n

destroy(pointer)

voiddestroy(pointer_p)[inline]

Parameters

pointer _p

max_size()

size_type max_size()const [inline]

Member Type Definitions Documentation

Typedef _S_Alloc

typedef pthread_alloc _S_Alloc[private]

Typedef __state_type

typedef pthread_alloc::__state_type__state_type[private]

Typedef const_pointer

typedef const _Tp *const_pointer

Typedef const_reference

typedef const _Tp &const_reference

Typedef difference_type

typedef ptrdiff_t difference_type

Typedef pointer

typedef _Tp *pointer

Typedef reference

typedef _Tp &reference

Typedef size_type

typedef size_t size_type

Typedef value_type

typedef _Tpvalue_type

Member Data Documentation

__state_type * _M_state

__state_type *_M_state