TPIE

v1.1rc1-6-g0c97303
tpie::allocator< T > Class Template Reference

A allocator object usable in STL containers, using the TPIE memory manager. More...

#include <tpie/memory.h>

Classes

struct  rebind
 

Public Types

typedef a_t::size_type size_type
 
typedef a_t::difference_type difference_type
 
typedef a_t::pointer pointer
 
typedef a_t::const_pointer const_pointer
 
typedef a_t::reference reference
 
typedef a_t::const_reference const_reference
 
typedef a_t::value_type value_type
 

Public Member Functions

 allocator (const allocator &a) throw ()
 
template<typename T2 >
 allocator (const allocator< T2 > &a) throw ()
 
T * allocate (size_t size, const void *hint=0)
 
void deallocate (T *p, size_t n)
 
size_t max_size () const
 
void construct (T *p)
 
void construct (T *p, const T &val)
 
void destroy (T *p)
 
pointer address (reference x) const
 
const_pointer address (const_reference x) const
 

Detailed Description

template<class T>
class tpie::allocator< T >

A allocator object usable in STL containers, using the TPIE memory manager.

Template Parameters
TThe type of the elements that can be allocated.

Definition at line 465 of file memory.h.


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