...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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; }