...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::fastmod_buckets
// In header: <boost/intrusive/options.hpp> template<bool Enabled> struct fastmod_buckets { };
WARNING: this option is EXPERIMENTAL, don't use it in production code This option setter specifies if the length of the bucket array provided by the user will always be a value specified by the suggested_upper|lower_bucket_count call. This allows the use of some precomputed values and speeds hash to bucket index operations, leading to better performance. In debug mode, the provided bucket array length will be checked with assertions.