cds
2.3.2
|
Option specifying whether to store hash values in the node. More...
#include <cds/container/details/cuckoo_base.h>
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:
true
enables storing the hash valuesfalse
disables storing the hash values