LDK::MallocAllocator< T > Class Template Reference
[Object creation and destruction]

An (almost) standard compiliant, threadsafe STL allocator with an MSVC extension. More...

#include <LDK/STLMallocAllocator.h>


Public Types

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

Public Member Functions

 MallocAllocator ()
 MallocAllocator (const MallocAllocator &)
template<typename T1>
 MallocAllocator (const MallocAllocator< T1 > &)
 ~MallocAllocator ()
pointer address (reference r) const
const_pointer address (const_reference r) const
pointer allocate (size_type n, const void *=0)
template<size_type n>
pointer allocate ()
pointer reallocate (pointer mem, size_type newNo)
char * _Charalloc (size_type n, const void *=0)
void deallocate (void *p, size_type n)
size_type max_size () const
void construct (pointer p, const value_type &val)
void destroy (pointer p)

Data Structures

struct  rebind


Detailed Description

template<class T>
class LDK::MallocAllocator< T >

Simply calls malloc() AFAIK the one piece of non-compliance is this allocator throws LDK::BadAllocError instead of std::bad_alloc.

Definition at line 54 of file STLMallocAllocator.h.


The documentation for this class was generated from the following file:
Generated on Fri Aug 17 18:32:27 2007 for LDK by  doxygen 1.5.1