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

Name

Description

hasher

The function/callable which will hash the value.

seed

Running hash to combine with

value

Value to hash and fold in

Created with MrDocs