...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::downcast_node_to_value_t
// In header: <boost/intrusive/hashtable.hpp> template<typename ValueTraits, bool IsConst> struct downcast_node_to_value_t { // types typedef unspecified base_t; typedef base_t::result_type result_type; typedef ValueTraits value_traits; typedef unordered_bucket_impl< value_traits >::type::node_traits::node node; typedef unspecified first_argument_type; typedef unspecified intermediate_argument_type; typedef pointer_traits< typenameValueTraits::pointer >::template rebind_pointer< constValueTraits >::type const_value_traits_ptr; // construct/copy/destruct downcast_node_to_value_t(const_value_traits_ptr); // public member functions result_type operator()(first_argument_type) const; };