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

PrevUpHomeNext

Struct template has_pointer_plus_2_bits

boost::intrusive::has_pointer_plus_2_bits

Synopsis

template<typename VoidPointer, std::size_t Alignment> 
struct has_pointer_plus_2_bits {
  static const bool value;
};

Description

This trait class is used to know if a pointer can embed 2 extra bits of information if it's going to be used to point to objects with an alignment of "Alignment" bytes.


PrevUpHomeNext