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

Click here to view the latest version of this page.

Struct template store_hash



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

template<bool Enabled> 
struct store_hash {
  // member classes/structs/unions

  // @ template<class Base>

  struct pack {
    static const bool store_hash;


This option setter specifies if the unordered hook should offer room to store the hash value. Storing the hash in the hook will speed up rehashing processes in applications where rehashing is frequent, rehashing might throw or the value is heavy to hash.