Boost C++ Libraries

...one 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.
PrevUpHomeNext

Class allocator<void>

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

Synopsis

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


class allocator<void> {
public:
  // 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;
  };
};

Description

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


PrevUpHomeNext