...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::trivial_value_traits
// In header: <boost/intrusive/trivial_value_traits.hpp> template<typename NodeTraits, link_mode_type LinkMode = normal_link> struct trivial_value_traits { // types typedef NodeTraits node_traits; typedef node_traits::node_ptr node_ptr; typedef node_traits::const_node_ptr const_node_ptr; typedef node_traits::node value_type; typedef node_ptr pointer; typedef const_node_ptr const_pointer; // public static functions static node_ptr to_node_ptr(value_type &) ; static const_node_ptr to_node_ptr(const value_type &) ; static pointer to_value_ptr(node_ptr) ; static const_pointer to_value_ptr(const_node_ptr) ; static const link_mode_type link_mode; };