Whole document tree
    

Whole document tree

Templatestd::allocator class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::allocator< _Tp > 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< _Tp >


Member Typedef Documentation

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

Definition at line 557 of file stl_alloc.h.

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

Definition at line 562 of file stl_alloc.h.

Referenced by std::allocator< _Tp >::address().

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

Definition at line 564 of file stl_alloc.h.

Referenced by std::allocator< _Tp >::address().

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

Definition at line 560 of file stl_alloc.h.

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

Definition at line 561 of file stl_alloc.h.

Referenced by std::allocator< _Tp >::address(), std::allocator< _Tp >::construct(), std::allocator< _Tp >::deallocate(), and std::allocator< _Tp >::destroy().

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

Definition at line 563 of file stl_alloc.h.

Referenced by std::allocator< _Tp >::address().

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

Definition at line 559 of file stl_alloc.h.

Referenced by std::allocator< _Tp >::allocate(), std::allocator< _Tp >::deallocate(), and std::allocator< _Tp >::max_size().

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

Definition at line 565 of file stl_alloc.h.


Constructor & Destructor Documentation

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

Definition at line 571 of file stl_alloc.h.

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

Definition at line 572 of file stl_alloc.h.

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

Definition at line 573 of file stl_alloc.h.

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

Definition at line 574 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 577 of file stl_alloc.h.

References std::allocator< _Tp >::const_pointer, and std::allocator< _Tp >::const_reference.

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

Definition at line 576 of file stl_alloc.h.

References std::allocator< _Tp >::pointer, and std::allocator< _Tp >::reference.

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

Definition at line 581 of file stl_alloc.h.

References allocate(), and std::allocator< _Tp >::size_type.

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

Definition at line 593 of file stl_alloc.h.

References std::allocator< _Tp >::pointer.

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

Definition at line 587 of file stl_alloc.h.

References deallocate(), std::allocator< _Tp >::pointer, and std::allocator< _Tp >::size_type.

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

Definition at line 594 of file stl_alloc.h.

References std::allocator< _Tp >::pointer.

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

Definition at line 590 of file stl_alloc.h.

References std::allocator< _Tp >::size_type.


The documentation for this class was generated from the following file:
Generated on Mon Apr 8 03:17:58 2002 for libstdc++-v3 Source by doxygen1.2.15