...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_has_rebind_other
// In header: <boost/intrusive/pointer_rebind.hpp> template<typename Ptr, typename U> struct pointer_has_rebind_other { // member classes/structs/unions template<typename V> struct any { // construct/copy/destruct any(const V &); }; // public static functions template<typename X> static char test(int, typename X::template rebind< U >::other *); template<typename X> static int test(any< int >, void *); // public data members static const bool value; };