Zero  0.1.0
Classes | Functions
stl_pooled_alloc.h File Reference

: A simple pooled allocator More...

#include "stl_pool.h"
#include <cassert>
#include <vector>
#include <list>
#include <set>
#include <map>

Go to the source code of this file.

Classes

class  PooledAllocator< T >
 A standards-compliant pooled allocator. More...
 
struct  PooledAllocator< T >::rebind< U >
 A struct to construct an allocator for a different type. More...
 
class  PooledAllocator< void >
 A specialisation of the pooled allocator for the void type. More...
 
struct  PooledAllocator< void >::rebind< U >
 A struct to construct an allocator for a different type. More...
 
struct  PooledMap< Key, Value, Traits >
 Template typedef std::map<..., PooledAllocator> to PooledMap<Key, Value>::Type. More...
 
struct  PooledMultiMap< Key, Value, Traits >
 Template typedef std::multimap<..., PooledAllocator> to PooledMultiMap<Key, Value>::Type. More...
 
struct  PooledList< Value >
 Template typedef std::list<..., PooledAllocator> to PooledList<Value>::Type. More...
 
struct  PooledSet< Value, Traits >
 Template typedef std::set<..., PooledAllocator> to PooledSet<Value>::Type. More...
 
struct  PooledVec< Value >
 Template typedef std::vector<..., PooledAllocator> to PooledVec<Value>::Type. More...
 

Functions

template<typename T , typename U >
bool operator== (PooledAllocator< T > const &left, PooledAllocator< U > const &right)
 Returns true if objects allocated from one pool can be deallocated from the other. More...
 
template<typename T , typename U >
bool operator!= (PooledAllocator< T > const &left, PooledAllocator< U > const &right)
 Returns true if objects allocated from one pool cannot be deallocated from the other. More...
 

Detailed Description

: A simple pooled allocator

Author
: Ippokratis Pandis, Nov 2008
Note
: Taken from: http://www.sjbrown.co.uk/2004/05/01/pooled-allocators-for-the-stl/

Function Documentation

§ operator!=()

template<typename T , typename U >
bool operator!= ( PooledAllocator< T > const &  left,
PooledAllocator< U > const &  right 
)

Returns true if objects allocated from one pool cannot be deallocated from the other.

§ operator==()

template<typename T , typename U >
bool operator== ( PooledAllocator< T > const &  left,
PooledAllocator< U > const &  right 
)

Returns true if objects allocated from one pool can be deallocated from the other.