cds  2.3.2
cds::container::cuckoo::store_hash< Enable > Struct Template Reference

Option specifying whether to store hash values in the node. More...

#include <cds/container/details/cuckoo_base.h>

Detailed Description

template<bool Enable>
struct cds::container::cuckoo::store_hash< Enable >

Option specifying whether to store hash values in the node.

This option reserves additional space in the hook to store the hash value of the object once it's introduced in the container. When this option is used, the unordered container will store the calculated hash value in the hook and rehashing operations won't need to recalculate the hash of the value. This option will improve the performance of unordered containers when rehashing is frequent or hashing the value is a slow operation

The Enable template parameter toggles the feature:

  • the value true enables storing the hash values
  • the value false disables storing the hash values

The documentation for this struct was generated from the following file:

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:31 by Doxygen 1.8.13