...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::pool_allocator<void, UserAllocator, Mutex, NextSize, MaxSize> — Specialization of pool_allocator<void>.
// In header: <boost/pool/pool_alloc.hpp> template<typename UserAllocator, typename Mutex, unsigned NextSize, unsigned MaxSize> class pool_allocator<void, UserAllocator, Mutex, NextSize, MaxSize> { public: // types typedef void * pointer; typedef const void * const_pointer; typedef void value_type; // member classes/structs/unions // Nested class rebind allows for transformation from pool_allocator<T> to pool_allocator<underline>. </underline> template<typename U> struct rebind { // types typedef pool_allocator< U, UserAllocator, Mutex, NextSize, MaxSize > other; }; };
Specialization of pool_allocator for type void: required by the standard to make this a conforming allocator type.