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 template aligned_allocator<void, Alignment>

boost::alignment::aligned_allocator<void, Alignment>

Synopsis

// In header: <boost/align/aligned_allocator.hpp>

template<std::size_t Alignment> 
class aligned_allocator<void, Alignment> {
public:
  // types
  typedef void         value_type;   
  typedef void *       pointer;      
  typedef const void * const_pointer;

  // member classes/structs/unions
  template<typename U> 
  struct rebind {
    // types
    typedef aligned_allocator< U, Alignment > other;
  };
};

Description

Class template aligned_allocator specialization.


PrevUpHomeNext