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 an old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Class allocator<void>

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

Synopsis

class allocator<void> {
public:
  // types
  typedef void *       pointer;      
  typedef const void * const_pointer;
  typedef void         value_type;   
  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