...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::unordered_default_bucket_traits
// In header: <boost/intrusive/hashtable.hpp> template<typename ValueTraitsOrHookOption> struct unordered_default_bucket_traits { // types typedef ValueTraitsOrHookOption::template pack< empty >::proto_value_traits supposed_value_traits; typedef bucket_traits_impl< typename unordered_bucket_ptr_impl< supposed_value_traits >::type, std::size_t > type; };
This metafunction will obtain the type of the default bucket traits (when the user does not specify the bucket_traits<> option) from the value_traits or hook option to be used with a hash container.