Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Public Types | Public Member Functions
Allocator< T > Class Template Reference
Inheritance diagram for Allocator< T >:
Inheritance graph
[legend]
Collaboration diagram for Allocator< T >:
Collaboration graph
[legend]

Data Structures

struct  rebind
 

Public Types

typedef T value_type
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef Pointer< T > pointer
 
typedef const Pointer< T > const_pointer
 
typedef T & reference
 
typedef const T & const_reference
 
typedef std::random_access_iterator_tag iterator_category
 

Public Member Functions

size_type max_size () const
 
pointer address (reference r) const
 
const_pointer address (const_reference r) const
 
 Allocator () throw ()
 
template<class U >
 Allocator (const Allocator< U > &) throw ()
 
pointer allocate (size_type n, const void *=0)
 
void deallocate (pointer ptr, size_type)
 
void construct (pointer ptr, const_reference val)
 
void destroy (pointer ptr)
 
size_type max_size () const throw ()
 
bool operator== (const Allocator &) const
 
bool operator!= (const Allocator &rhs) const
 

Detailed Description

template<class T>
class Allocator< T >

Definition at line 66 of file rwexcept.cpp.

Member Typedef Documentation

◆ const_pointer

template<class T >
typedef const Pointer<T> Allocator< T >::const_pointer

Definition at line 162 of file 23.vector.allocator.cpp.

◆ const_reference

template<class T >
typedef const T& Allocator< T >::const_reference

Definition at line 164 of file 23.vector.allocator.cpp.

◆ difference_type

template<class T >
typedef std::ptrdiff_t Allocator< T >::difference_type

Definition at line 160 of file 23.vector.allocator.cpp.

◆ iterator_category

template<class T >
typedef std::random_access_iterator_tag Allocator< T >::iterator_category

Definition at line 165 of file 23.vector.allocator.cpp.

◆ pointer

template<class T >
typedef Pointer<T> Allocator< T >::pointer

Definition at line 161 of file 23.vector.allocator.cpp.

◆ reference

template<class T >
typedef T& Allocator< T >::reference

Definition at line 163 of file 23.vector.allocator.cpp.

◆ size_type

template<class T >
typedef std::size_t Allocator< T >::size_type

Definition at line 159 of file 23.vector.allocator.cpp.

◆ value_type

template<class T >
typedef T Allocator< T >::value_type

Definition at line 158 of file 23.vector.allocator.cpp.

Constructor & Destructor Documentation

◆ Allocator() [1/2]

template<class T >
Allocator< T >::Allocator ( )
throw (
)
inline

Definition at line 176 of file 23.vector.allocator.cpp.

◆ Allocator() [2/2]

template<class T >
template<class U >
Allocator< T >::Allocator ( const Allocator< U > &  )
throw (
)
inline

Definition at line 179 of file 23.vector.allocator.cpp.

Member Function Documentation

◆ address() [1/2]

template<class T >
const_pointer Allocator< T >::address ( const_reference  r) const
inline

Definition at line 171 of file 23.vector.allocator.cpp.

◆ address() [2/2]

template<class T >
pointer Allocator< T >::address ( reference  r) const
inline

Definition at line 167 of file 23.vector.allocator.cpp.

◆ allocate()

template<class T >
pointer Allocator< T >::allocate ( size_type  n,
const void *  = 0 
)
inline

Definition at line 181 of file 23.vector.allocator.cpp.

◆ construct()

template<class T >
void Allocator< T >::construct ( pointer  ptr,
const_reference  val 
)
inline

Definition at line 190 of file 23.vector.allocator.cpp.

◆ deallocate()

template<class T >
void Allocator< T >::deallocate ( pointer  ptr,
size_type   
)
inline

Definition at line 186 of file 23.vector.allocator.cpp.

◆ destroy()

template<class T >
void Allocator< T >::destroy ( pointer  ptr)
inline

Definition at line 194 of file 23.vector.allocator.cpp.

◆ max_size() [1/2]

template<class T >
size_type Allocator< T >::max_size ( ) const
inline

Definition at line 68 of file rwexcept.cpp.

◆ max_size() [2/2]

template<class T >
size_type Allocator< T >::max_size ( ) const
throw (
)
inline

Definition at line 198 of file 23.vector.allocator.cpp.

◆ operator!=()

template<class T >
bool Allocator< T >::operator!= ( const Allocator< T > &  rhs) const
inline

Definition at line 209 of file 23.vector.allocator.cpp.

◆ operator==()

template<class T >
bool Allocator< T >::operator== ( const Allocator< T > &  ) const
inline

Definition at line 205 of file 23.vector.allocator.cpp.


The documentation for this class was generated from the following files: