Whole document tree
    

Whole document tree

Templatestd::__allocator struct Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::__allocator< _Tp, _Alloc > Struct 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 &__a) __STL_NOTHROW
template<class _Tp1>  __allocator (const __allocator< _Tp1, _Alloc > &__a) __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)

Public Attributes

_Alloc __underlying_alloc

template<class _Tp, class _Alloc>
struct std::__allocator< _Tp, _Alloc >


Member Typedef Documentation

template<class _Tp, class _Alloc>
typedef const _Tp* std::__allocator< _Tp, _Alloc >::const_pointer
 

Definition at line 638 of file stl_alloc.h.

Referenced by std::__allocator< _Tp, _Alloc >::address().

template<class _Tp, class _Alloc>
typedef const _Tp& std::__allocator< _Tp, _Alloc >::const_reference
 

Definition at line 640 of file stl_alloc.h.

Referenced by std::__allocator< _Tp, _Alloc >::address().

template<class _Tp, class _Alloc>
typedef ptrdiff_t std::__allocator< _Tp, _Alloc >::difference_type
 

Definition at line 636 of file stl_alloc.h.

template<class _Tp, class _Alloc>
typedef _Tp* std::__allocator< _Tp, _Alloc >::pointer
 

Definition at line 637 of file stl_alloc.h.

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

template<class _Tp, class _Alloc>
typedef _Tp& std::__allocator< _Tp, _Alloc >::reference
 

Definition at line 639 of file stl_alloc.h.

Referenced by std::__allocator< _Tp, _Alloc >::address().

template<class _Tp, class _Alloc>
typedef size_t std::__allocator< _Tp, _Alloc >::size_type
 

Definition at line 635 of file stl_alloc.h.

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

template<class _Tp, class _Alloc>
typedef _Tp std::__allocator< _Tp, _Alloc >::value_type
 

Definition at line 641 of file stl_alloc.h.


Constructor & Destructor Documentation

template<class _Tp, class _Alloc>
std::__allocator< _Tp, _Alloc >::__allocator   [inline]
 

Definition at line 647 of file stl_alloc.h.

template<class _Tp, class _Alloc>
std::__allocator< _Tp, _Alloc >::__allocator const __allocator< _Tp, _Alloc > &    __a [inline]
 

Definition at line 648 of file stl_alloc.h.

template<class _Tp, class _Alloc>
template<class _Tp1>
std::__allocator< _Tp, _Alloc >::__allocator const __allocator< _Tp1, _Alloc > &    __a [inline]
 

Definition at line 651 of file stl_alloc.h.

template<class _Tp, class _Alloc>
std::__allocator< _Tp, _Alloc >::~__allocator   [inline]
 

Definition at line 653 of file stl_alloc.h.


Member Function Documentation

template<class _Tp, class _Alloc>
const_pointer std::__allocator< _Tp, _Alloc >::address const_reference    __x const [inline]
 

Definition at line 656 of file stl_alloc.h.

References std::__allocator< _Tp, _Alloc >::const_pointer, and std::__allocator< _Tp, _Alloc >::const_reference.

template<class _Tp, class _Alloc>
pointer std::__allocator< _Tp, _Alloc >::address reference    __x const [inline]
 

Definition at line 655 of file stl_alloc.h.

References std::__allocator< _Tp, _Alloc >::pointer, and std::__allocator< _Tp, _Alloc >::reference.

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

Definition at line 659 of file stl_alloc.h.

References std::__allocator< _Tp, _Alloc >::__underlying_alloc, and std::__allocator< _Tp, _Alloc >::size_type.

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

Definition at line 672 of file stl_alloc.h.

References std::__allocator< _Tp, _Alloc >::pointer.

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

Definition at line 666 of file stl_alloc.h.

References std::__allocator< _Tp, _Alloc >::__underlying_alloc, std::__allocator< _Tp, _Alloc >::pointer, and std::__allocator< _Tp, _Alloc >::size_type.

template<class _Tp, class _Alloc>
void std::__allocator< _Tp, _Alloc >::destroy pointer    __p [inline]
 

Definition at line 673 of file stl_alloc.h.

References std::__allocator< _Tp, _Alloc >::pointer.

template<class _Tp, class _Alloc>
size_type std::__allocator< _Tp, _Alloc >::max_size   const [inline]
 

Definition at line 669 of file stl_alloc.h.

References std::__allocator< _Tp, _Alloc >::size_type.


Member Data Documentation

template<class _Tp, class _Alloc>
_Alloc std::__allocator< _Tp, _Alloc >::__underlying_alloc
 

Definition at line 633 of file stl_alloc.h.

Referenced by std::__allocator< _Tp, _Alloc >::allocate(), std::__allocator< _Tp, _Alloc >::deallocate(), std::operator!=(), and std::operator==().


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