TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Types | Static Public Member Functions | List of all members
allocator_impl< _Tp, _RawAlloc > Struct Template Reference

Detailed Description

template<class _Tp, class _RawAlloc>
struct astl::allocator_impl< _Tp, _RawAlloc >

Object allocator implementation.

Public Types

typedef _RawAlloc raw_allocator
 
typedef _Tp value_type
 
typedef value_typepointer
 
typedef const _Tp * const_pointer
 
typedef _Tp & reference
 
typedef const _Tp & const_reference
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 

Static Public Member Functions

static _Tp * allocate (size_type __n, const void *=0)
 
static void deallocate (pointer __p, size_type __n)
 
static void deallocate (pointer __p)
 
static size_type max_size ()
 
static void construct (pointer __p, const _Tp &__val)
 
static void destroy (pointer __p)
 

Member Typedef Documentation

typedef _RawAlloc raw_allocator
typedef _Tp value_type
typedef value_type* pointer
typedef const _Tp* const_pointer
typedef _Tp& reference
typedef const _Tp& const_reference
typedef size_t size_type
typedef ptrdiff_t difference_type

Member Function Documentation

static _Tp* allocate ( size_type  __n,
const void = 0 
)
static
static void deallocate ( pointer  __p,
size_type  __n 
)
static
static void deallocate ( pointer  __p)
static
static size_type max_size ( )
static
static void construct ( pointer  __p,
const _Tp &  __val 
)
static
static void destroy ( pointer  __p)
static