Boost C++ Libraries 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 for the latest Boost documentation.

Class template fast_pool_allocator<void, UserAllocator, Mutex, NextSize, MaxSize>

boost::fast_pool_allocator<void, UserAllocator, Mutex, NextSize, MaxSize> — Specialization of fast_pool_allocator<void>.


// In header: <boost/pool/pool_alloc.hpp>

template<typename UserAllocator, typename Mutex, unsigned NextSize, 
         unsigned MaxSize> 
class fast_pool_allocator<void, UserAllocator, Mutex, NextSize, MaxSize> {
  // types
  typedef void *       pointer;      
  typedef const void * const_pointer;
  typedef void         value_type;   

  // member classes/structs/unions

  // Nested class rebind allows for transformation from fast_pool_allocator<T>
  // to fast_pool_allocator<U>.
  template<typename U> 
  struct rebind {
    // types
    typedef fast_pool_allocator< U, UserAllocator, Mutex, NextSize, MaxSize > other;


Specialization of fast_pool_allocator<void> required to make the allocator standard-conforming.