Pyrogenesis
trunk
|
fully STL-compatible allocator that simply draws upon another Allocator. More...
#include <allocator_adapters.h>
Classes | |
struct | rebind |
Public Types | |
typedef T | value_type |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef T & | reference |
typedef const T & | const_reference |
typedef std::size_t | size_type |
typedef std::ptrdiff_t | difference_type |
Public Member Functions | |
NOTHROW_DEFINE | ProxyAllocator () |
NOTHROW_DEFINE | ProxyAllocator (Allocator &allocator) |
template<typename U , class A > | |
NOTHROW_DEFINE | ProxyAllocator (const ProxyAllocator< U, A > &rhs) |
bool | operator== (const ProxyAllocator &rhs) const |
bool | operator!= (const ProxyAllocator &rhs) const |
pointer | address (reference r) |
const_pointer | address (const_reference s) |
size_type | max_size () const throw () |
void | construct (const pointer ptr, const value_type &t) |
void | destroy (pointer ptr) |
pointer | allocate (size_type n) |
pointer | allocate (size_type n, const void *const) |
void | deallocate (const pointer ptr, const size_type n) |
Public Attributes | |
Allocator * | allocator |
fully STL-compatible allocator that simply draws upon another Allocator.
this allows a single allocator to serve multiple STL containers.
typedef const T* ProxyAllocator< T, Allocator >::const_pointer |
typedef const T& ProxyAllocator< T, Allocator >::const_reference |
typedef std::ptrdiff_t ProxyAllocator< T, Allocator >::difference_type |
typedef T* ProxyAllocator< T, Allocator >::pointer |
typedef T& ProxyAllocator< T, Allocator >::reference |
typedef std::size_t ProxyAllocator< T, Allocator >::size_type |
typedef T ProxyAllocator< T, Allocator >::value_type |
|
explicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Allocator* ProxyAllocator< T, Allocator >::allocator |