Boost C++ Libraries Home Libraries People FAQ More

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 = default_user_allocator_new_delete, 
           typename Mutex = details::pool::default_mutex, 
           unsigned NextSize = 32, unsigned MaxSize = 0> 
    class singleton_pool;
}

PrevUpHomeNext