per_thread_allocator Class Reference

class per_thread_allocator

Nested Classes and Structures

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 &)

void construct ( pointer __p,
const _Tp & __val
) [inline]

Parameters

pointer __p
const _Tp & __val

deallocate(pointer, size_type)

void deallocate ( pointer __p,
size_type __n
) [inline]

Parameters

pointer __p
size_type __n

destroy(pointer)

void destroy ( 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 _Tp value_type

Member Data Documentation

__state_type * _M_state

__state_type * _M_state