folly::hash::commutative_hash_combine_value_generic

Hash a value, and combine it with a seed. Commutative.

Synopsis

Declared in <folly/hash/Hash.h>

template<
    class Hash,
    class Value>
uint64_t
commutative_hash_combine_value_generic(
    uint64_t seed,
    Hash const& hasher,
    Value const& value);

Description

methodset ranges

Return Value

The order-independent combined hash

Parameters

NameDescription
hasherThe function/callable which will hash the value.
seedRunning hash to combine with
valueValue to hash and fold in