cds  2.3.2
cds::intrusive::feldman_hashset::hash_accessor< Accessor > Struct Template Reference

Hash accessor option. More...

#include <cds/intrusive/details/feldman_hashset_base.h>

Detailed Description

template<typename Accessor>
struct cds::intrusive::feldman_hashset::hash_accessor< Accessor >

Hash accessor option.

It is most-important feature of FeldmanHashSet. That functor must return a reference to fixed-sized hash value of data node. The return value of that functor specifies the type of hash value.

Example:

typedef uint8_t hash_type[32]; // 256-bit hash type
struct foo {
hash_type hash; // 256-bit hash value
// ... other fields
};
// Hash accessor
struct foo_hash_accessor {
hash_type const& operator()( foo const& d ) const
{
return d.hash;
}
};

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:43 by Doxygen 1.8.13