Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::allocator Class Template Reference

#include <stl_alloc.h>

List of all members.

Public Types

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

Public Methods

 allocator () __STL_NOTHROW
 allocator (const allocator &) __STL_NOTHROW
template<class _Tp1>  allocator (const allocator< _Tp1 > &) __STL_NOTHROW
 ~allocator () __STL_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)
size_type max_size () const __STL_NOTHROW
void construct (pointer __p, const _Tp &__val)
void destroy (pointer __p)

Private Types

typedef alloc _Alloc

template<class _Tp> class std::allocator


Member Typedef Documentation

template<class _Tp>
typedef alloc std::allocator<_Tp>::_Alloc [private]
 

Definition at line 528 of file stl_alloc.h.

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

Definition at line 533 of file stl_alloc.h.

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

Definition at line 535 of file stl_alloc.h.

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

Definition at line 531 of file stl_alloc.h.

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

Definition at line 532 of file stl_alloc.h.

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

Definition at line 534 of file stl_alloc.h.

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

Definition at line 530 of file stl_alloc.h.

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

Definition at line 536 of file stl_alloc.h.


Constructor & Destructor Documentation

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

Definition at line 542 of file stl_alloc.h.

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

Definition at line 543 of file stl_alloc.h.

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

Definition at line 544 of file stl_alloc.h.

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

Definition at line 545 of file stl_alloc.h.


Member Function Documentation

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

Definition at line 548 of file stl_alloc.h.

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

Definition at line 547 of file stl_alloc.h.

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

Definition at line 552 of file stl_alloc.h.

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

Definition at line 564 of file stl_alloc.h.

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

Definition at line 558 of file stl_alloc.h.

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

Definition at line 565 of file stl_alloc.h.

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

Definition at line 561 of file stl_alloc.h.


The documentation for this class was generated from the following file:
Generated at Tue May 1 16:30:04 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001