17 #ifndef HH_SENF_Utils_pool_alloc_mixin_ 18 #define HH_SENF_Utils_pool_alloc_mixin_ 1 21 #include <boost/pool/singleton_pool.hpp> 28 struct pool_alloc_mixin_tag;
66 template <
class T=
void>
68 :
public boost::singleton_pool< pool_alloc_mixin_tag, sizeof(Self) >
70 typedef boost::singleton_pool< pool_alloc_mixin_tag, sizeof(Self) >
type;
73 static void *
operator new (
size_t size);
75 static void operator delete (
void *p,
size_t size);
79 static unsigned long allocCounter();
81 static unsigned long allocCounter(
long delta);
Mixin to assign pool allocator to a class.
Templated typedef for the pool used.
boost::singleton_pool< pool_alloc_mixin_tag, sizeof(Self) > type