...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_bits<T *, NumBits>
// In header: <boost/intrusive/pointer_plus_bits.hpp> template<typename T, std::size_t NumBits> struct pointer_plus_bits<T *, NumBits> { // 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); // public data members static const uintptr_t Mask; };