...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::intrusive::pointer_plus_2_bits<T *>
template<typename T> struct pointer_plus_2_bits<T *> { // types typedef T * pointer; // public static functions static pointer get_pointer(pointer) ; static void set_pointer(pointer &, pointer) ; static std::size_t get_bits(pointer) ; static void set_bits(pointer &, std::size_t) ; };