__gnu_cxx::new_allocator< _Tp > Class Template Reference

An allocator that uses global new, as per [20.4]. More...

#include <new_allocator.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 Member Functions

 new_allocator () throw ()
 new_allocator (const new_allocator &) throw ()
template<typename _Tp1>  new_allocator (const new_allocator< _Tp1 > &) throw ()
 ~new_allocator () throw ()
pointer address (reference __x) const
const_pointer address (const_reference __x) const
pointer allocate (size_type __n, const void *=0)
void deallocate (pointer __p, size_type)
size_type max_size () const throw ()
void construct (pointer __p, const _Tp &__val)
void destroy (pointer __p)


Detailed Description

template<typename _Tp>
class __gnu_cxx::new_allocator< _Tp >

An allocator that uses global new, as per [20.4].

This is precisely the allocator defined in the C++ Standard.

(See allocators info for more.)

Definition at line 47 of file new_allocator.h.


Member Typedef Documentation

template<typename _Tp>
typedef const _Tp* __gnu_cxx::new_allocator< _Tp >::const_pointer
 

Definition at line 53 of file new_allocator.h.

template<typename _Tp>
typedef const _Tp& __gnu_cxx::new_allocator< _Tp >::const_reference
 

Definition at line 55 of file new_allocator.h.

template<typename _Tp>
typedef ptrdiff_t __gnu_cxx::new_allocator< _Tp >::difference_type
 

Definition at line 51 of file new_allocator.h.

template<typename _Tp>
typedef _Tp* __gnu_cxx::new_allocator< _Tp >::pointer
 

Definition at line 52 of file new_allocator.h.

template<typename _Tp>
typedef _Tp& __gnu_cxx::new_allocator< _Tp >::reference
 

Definition at line 54 of file new_allocator.h.

template<typename _Tp>
typedef size_t __gnu_cxx::new_allocator< _Tp >::size_type
 

Definition at line 50 of file new_allocator.h.

template<typename _Tp>
typedef _Tp __gnu_cxx::new_allocator< _Tp >::value_type
 

Definition at line 56 of file new_allocator.h.


Constructor & Destructor Documentation

template<typename _Tp>
__gnu_cxx::new_allocator< _Tp >::new_allocator  )  throw () [inline]
 

Definition at line 62 of file new_allocator.h.

template<typename _Tp>
__gnu_cxx::new_allocator< _Tp >::new_allocator const new_allocator< _Tp > &   )  throw () [inline]
 

Definition at line 64 of file new_allocator.h.

template<typename _Tp>
template<typename _Tp1>
__gnu_cxx::new_allocator< _Tp >::new_allocator const new_allocator< _Tp1 > &   )  throw () [inline]
 

Definition at line 67 of file new_allocator.h.

template<typename _Tp>
__gnu_cxx::new_allocator< _Tp >::~new_allocator  )  throw () [inline]
 

Definition at line 69 of file new_allocator.h.


Member Function Documentation

template<typename _Tp>
const_pointer __gnu_cxx::new_allocator< _Tp >::address const_reference  __x  )  const [inline]
 

Definition at line 75 of file new_allocator.h.

template<typename _Tp>
pointer __gnu_cxx::new_allocator< _Tp >::address reference  __x  )  const [inline]
 

Definition at line 72 of file new_allocator.h.

template<typename _Tp>
pointer __gnu_cxx::new_allocator< _Tp >::allocate size_type  __n,
const void *  = 0
[inline]
 

Definition at line 80 of file new_allocator.h.

template<typename _Tp>
void __gnu_cxx::new_allocator< _Tp >::construct pointer  __p,
const _Tp &  __val
[inline]
 

Definition at line 95 of file new_allocator.h.

References __gnu_cxx::__val.

template<typename _Tp>
void __gnu_cxx::new_allocator< _Tp >::deallocate pointer  __p,
size_type 
[inline]
 

Definition at line 85 of file new_allocator.h.

template<typename _Tp>
void __gnu_cxx::new_allocator< _Tp >::destroy pointer  __p  )  [inline]
 

Definition at line 99 of file new_allocator.h.

template<typename _Tp>
size_type __gnu_cxx::new_allocator< _Tp >::max_size void   )  const throw () [inline]
 

Definition at line 89 of file new_allocator.h.


The documentation for this class was generated from the following file:
Generated on Tue Jan 30 17:32:02 2007 for GNU C++ STL by doxygen 1.3.6