Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Header <boost/pool/singleton_pool.hpp>

The singleton_pool class allows other pool interfaces for types of the same size to share the same underlying pool.

Header singleton_pool.hpp provides a template class singleton_pool, which provides access to a pool as a singleton object.

namespace boost {
  template<typename Tag, unsigned RequestedSize, typename UserAllocator, 
           typename Mutex, unsigned NextSize, unsigned MaxSize> 
    class singleton_pool;
}

PrevUpHomeNext