Hash accessor option.
More...
#include <cds/intrusive/details/feldman_hashset_base.h>
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];
struct foo {
hash_type hash;
};
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/intrusive/details/feldman_hashset_base.h