...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::get_parent_from_member
// In header: <boost/intrusive/parent_from_member.hpp> template<typename Parent, typename Member> Parent * get_parent_from_member(Member * member, const Member Parent::* ptr_to_member);