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 to view this page for the latest version.

Class allocator<void>

boost::mpi::allocator<void> — Allocator specialization for void value types.


// In header: <boost/mpi/allocator.hpp>

class allocator<void> {
  // types
  typedef void *       pointer;      
  typedef const void * const_pointer;
  typedef void         value_type;   

  // member classes/structs/unions
  template<typename U> 
  struct rebind {
    // types
    typedef allocator< U > other;


The void specialization of allocator is useful only for rebinding to another, different value type.