allocator Class Reference

#include <stdapis/stlportv5/stl/_alloc.h>

Link against: libstdcppv5.lib

class allocator : public __stlport_class< allocator< _Tp > >

Nested Classes and Structures

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
Public Member Functions
allocator()
allocator(const allocator< _Tp1 > &)
allocator(const allocator< _Tp > &)
allocator(__move_source< allocator< _Tp > >)
~allocator()
pointer address(reference)
const_pointer address(const_reference)
_Tp *allocate(size_type, const void *)
_Tp *allocate(size_type, size_type &)
voidconstruct(pointer, const_reference)
voiddeallocate(pointer, size_type)
voiddeallocate(pointer)
voiddestroy(pointer)
size_type max_size()
Inherited Type Definitions
__stlport_class< allocator< _Tp > >::_Type

Member Type Definition Documentation

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

Constructor & Destructor Documentation

allocator ( )

allocator()[inline]

allocator ( const allocator< _Tp1 > & )

allocator(const allocator< _Tp1 > &)[inline]

allocator ( const allocator< _Tp > & )

allocator(const allocator< _Tp > &)[inline]

allocator ( __move_source< allocator< _Tp > > )

allocator(__move_source< allocator< _Tp > >)[inline]

~allocator ( )

~allocator()[inline]

Member Function Documentation

address ( reference )

pointer address(reference__x)const [inline]

address ( const_reference )

const_pointer address(const_reference__x)const [inline]

allocate ( size_type, const void * )

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

allocate ( size_type, size_type & )

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

construct ( pointer, const_reference )

voidconstruct(pointer__p,
const_reference__val
)[inline]

deallocate ( pointer, size_type )

voiddeallocate(pointer__p,
size_type__n
)[inline]

deallocate ( pointer )

voiddeallocate(pointer__p)const [inline]

destroy ( pointer )

voiddestroy(pointer__p)[inline]

max_size ( )

size_type max_size()const [inline]