allocator< _Tp > Class Template Reference

#include <_alloc.h>

Inheritance diagram for allocator< _Tp >:

__stlport_class< allocator< _Tp > > List of all members.

Public Types

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

Public Member Functions

 allocator () _STLP_NOTHROW
 allocator (const allocator< _Tp > &) _STLP_NOTHROW
 allocator (__move_source< allocator< _Tp > > src) _STLP_NOTHROW
 ~allocator () _STLP_NOTHROW
pointer address (reference __x) const
const_pointer address (const_reference __x) const
_Tp * allocate (size_type __n, const void *=0)
void deallocate (pointer __p, size_type __n)
void deallocate (pointer __p) const
size_type max_size () const _STLP_NOTHROW
void construct (pointer __p, const_reference __val)
void destroy (pointer __p)
_Tp * allocate (size_type __n, size_type &__allocated_n)

Detailed Description

template<class _Tp>
class allocator< _Tp >

Definition at line 347 of file _alloc.h.


Member Typedef Documentation

template<class _Tp>
typedef _Tp allocator< _Tp >::value_type

Definition at line 353 of file _alloc.h.

template<class _Tp>
typedef _Tp* allocator< _Tp >::pointer

Reimplemented in __iostring_allocator< _CharT >.

Definition at line 354 of file _alloc.h.

template<class _Tp>
typedef const _Tp* allocator< _Tp >::const_pointer

Definition at line 355 of file _alloc.h.

template<class _Tp>
typedef _Tp& allocator< _Tp >::reference

Definition at line 356 of file _alloc.h.

template<class _Tp>
typedef const _Tp& allocator< _Tp >::const_reference

Definition at line 357 of file _alloc.h.

template<class _Tp>
typedef size_t allocator< _Tp >::size_type

Reimplemented in __iostring_allocator< _CharT >.

Definition at line 358 of file _alloc.h.

template<class _Tp>
typedef ptrdiff_t allocator< _Tp >::difference_type

Definition at line 359 of file _alloc.h.


Constructor & Destructor Documentation

template<class _Tp>
allocator< _Tp >::allocator (  )  [inline]

Definition at line 365 of file _alloc.h.

template<class _Tp>
allocator< _Tp >::allocator ( const allocator< _Tp > &   )  [inline]

Definition at line 369 of file _alloc.h.

template<class _Tp>
allocator< _Tp >::allocator ( __move_source< allocator< _Tp > >  src  )  [inline]

Definition at line 370 of file _alloc.h.

template<class _Tp>
allocator< _Tp >::~allocator (  )  [inline]

Definition at line 371 of file _alloc.h.


Member Function Documentation

template<class _Tp>
pointer allocator< _Tp >::address ( reference  __x  )  const [inline]

Definition at line 372 of file _alloc.h.

template<class _Tp>
const_pointer allocator< _Tp >::address ( const_reference  __x  )  const [inline]

Definition at line 373 of file _alloc.h.

template<class _Tp>
_Tp* allocator< _Tp >::allocate ( size_type  __n,
const void *  = 0 
) [inline]

Reimplemented in __iostring_allocator< _CharT >.

Definition at line 375 of file _alloc.h.

template<class _Tp>
void allocator< _Tp >::deallocate ( pointer  __p,
size_type  __n 
) [inline]

Definition at line 393 of file _alloc.h.

template<class _Tp>
void allocator< _Tp >::deallocate ( pointer  __p  )  const [inline]

Definition at line 403 of file _alloc.h.

template<class _Tp>
size_type allocator< _Tp >::max_size (  )  const [inline]

Definition at line 404 of file _alloc.h.

Referenced by allocator< _CharT >::allocate().

template<class _Tp>
void allocator< _Tp >::construct ( pointer  __p,
const_reference  __val 
) [inline]

Definition at line 405 of file _alloc.h.

template<class _Tp>
void allocator< _Tp >::destroy ( pointer  __p  )  [inline]

Definition at line 406 of file _alloc.h.

template<class _Tp>
_Tp* allocator< _Tp >::allocate ( size_type  __n,
size_type __allocated_n 
) [inline]

Definition at line 425 of file _alloc.h.


The documentation for this class was generated from the following file:
  • /home/ntakagi/work/STLport-5.1.5/stlport/stl/_alloc.h



Generated on Mon Mar 10 15:32:56 2008 by  doxygen 1.5.1