Default_allocator< T > Struct Template Reference

Allocator template class using new/delete. More...

#include "Handle.hpp"

Classes

struct  rebind

Public Types

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

Public Member Functions

bool operator== (const Default_allocator &) const
bool operator!= (const Default_allocator &) const
template<typename U >
 Default_allocator (const Default_allocator< U > &)

Static Public Member Functions

static pointer address (reference r)
static const_pointer address (const_reference r)
static pointer allocate (const size_type n, const pointer=0)
static void deallocate (const pointer p, const size_type)
static size_type max_size ()
static void construct (const pointer p, const_reference t)
static void destroy (const pointer p)

Detailed Description

template<typename T>
struct DM::Default_allocator< T >

Allocator template class using new/delete.

Author
JO
Date
07.04.2005
See Also
PH_malloc_allocator

The allocator class can be used in PH_List, PH_listOld, PH_vector and its super classes as memory manager. The class uses new and delete for managing the memory. The code is based on the Boost Library http://www.boost.org/