X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2Fpool_alloc_mixin.hh;h=8a321199ce041582f9cd2b26cea3d2f6efcf2303;hb=73c33f663ff0f65e4656ea5a5f6f07a43a2e1722;hp=2cdfe5ed12e3f8c6201b54fc0d5e7f9903aebb8d;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Utils/pool_alloc_mixin.hh b/senf/Utils/pool_alloc_mixin.hh index 2cdfe5e..8a32119 100644 --- a/senf/Utils/pool_alloc_mixin.hh +++ b/senf/Utils/pool_alloc_mixin.hh @@ -40,7 +40,7 @@ namespace senf { This mixin will overload a classes operator new and operator delete so as to make the class use the Boost.Pool memory allocator by + href="http://www.boost.org/doc/libs/release/libs/pool/doc/index.html">Boost.Pool memory allocator by default. Using this allocator does however introduce a few restrictions: \li The operator is defined for a fixed size. Therefore if you derive from the class you @@ -58,7 +58,7 @@ namespace senf { \endcode \note pool_alloc_mixin uses the Boost.Pool singleton + href="http://www.boost.org/doc/libs/release/libs/pool/doc/index.html">Boost.Pool singleton pool interface with the tag pool_alloc_mixin_tag. This class is accessible via the pool member. Using this member, it is simple to call relevant pool functions, e.g. SomeClass::pool<>::release_memory(). @@ -73,7 +73,7 @@ namespace senf { the simple typedef is replaced with a nested struct. */ template - struct pool + struct pool : public boost::singleton_pool< pool_alloc_mixin_tag, sizeof(Self) > { typedef boost::singleton_pool< pool_alloc_mixin_tag, sizeof(Self) > type;