Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Struct template power_2_buckets

boost::intrusive::power_2_buckets

Synopsis

// In header: <boost/intrusive/options.hpp>

template<bool Enabled> 
struct power_2_buckets {
};

Description

This option setter specifies if the length of the bucket array provided by the user will always be power of two. This allows using masks instead of the default modulo operation to determine the bucket number from the hash value, leading to better performance. In debug mode, the provided bucket array length will be checked with assertions.


PrevUpHomeNext