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

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

#include <LDK/STLAllocator.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

 Allocator () throw ()
 Allocator (const Allocator &)
template<typename T1>
 Allocator (const Allocator< T1 > &)
 ~Allocator ()
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::Allocator< T >

Uses the LDK system of thread local memory pools for thread safety without locks. AFAIK the one piece of non-compliance is this allocator throws LDK::BadAllocError instead of std::bad_alloc.

Definition at line 48 of file STLAllocator.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