tl.BasicAllocator< T > Class Template Reference

#include <allocator.h>

List of all members.


Detailed Description

template<class T>
class tl::BasicAllocator< T >

An allocator based on the basic memory allocation primitives.


Public Types

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

Public Member Functions

 BasicAllocator ()
template<class U>
 BasicAllocator (const BasicAllocator< U > &allocator)
 ~BasicAllocator ()
pointer address (reference x) const
const_pointer address (const_reference x) const
pointer allocate (size_type n, const void *=0)
void deallocate (void *UNREF p, size_type)
size_type max_size () const
void construct (pointer p, const value_type &x)
void destroy (pointer p)
template<class U>
bool operator== (const BasicAllocator< U > &allocator)
template<class U>
bool operator!= (const BasicAllocator< U > &allocator)

Classes

struct  rebind


Member Typedef Documentation

template<class T>
typedef T* tl.BasicAllocator< T >.pointer

template<class T>
typedef const T* tl.BasicAllocator< T >.const_pointer

template<class T>
typedef T& tl.BasicAllocator< T >.reference

template<class T>
typedef const T& tl.BasicAllocator< T >.const_reference

template<class T>
typedef T tl.BasicAllocator< T >.value_type

template<class T>
typedef size_t tl.BasicAllocator< T >.size_type

template<class T>
typedef ptrdiff_t tl.BasicAllocator< T >.difference_type


Constructor & Destructor Documentation

template<class T>
tl.BasicAllocator< T >.BasicAllocator (  ) 

template<class T>
template<class U>
tl.BasicAllocator< T >.BasicAllocator ( const BasicAllocator< U > &  allocator  ) 

template<class T>
tl.BasicAllocator< T >.~BasicAllocator (  ) 


Member Function Documentation

template<class T>
pointer tl.BasicAllocator< T >.address ( reference  x  )  const

template<class T>
const_pointer tl.BasicAllocator< T >.address ( const_reference  x  )  const

template<class T>
pointer tl.BasicAllocator< T >.allocate ( size_type  n,
const void *  = 0 
)

template<class T>
void tl.BasicAllocator< T >.deallocate ( void *UNREF  p,
size_type   
)

template<class T>
size_type tl.BasicAllocator< T >.max_size (  )  const

template<class T>
void tl.BasicAllocator< T >.construct ( pointer  p,
const value_type x 
)

template<class T>
void tl.BasicAllocator< T >.destroy ( pointer  p  ) 

template<class T>
template<class U>
bool tl.BasicAllocator< T >.operator== ( const BasicAllocator< U > &  allocator  ) 

template<class T>
template<class U>
bool tl.BasicAllocator< T >.operator!= ( const BasicAllocator< U > &  allocator  ) 


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

Genereated on Tue Mar 11 19:25:43 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.