hash_combine_generic overloads

Synopses

Declared in <folly/hash/Hash.h>

Base case of hash_combine_generic with no values to combine.

template<class Hasher>
size_t
hash_combine_generic(Hasher const& hasher) noexcept;

Combine hashes of multiple items, order‐dependently.

template<
    class Hasher,
    typename T,
    typename... Ts>
size_t
hash_combine_generic(
    Hasher const& h,
    T const& t,
    Ts const&... ts) noexcept(/* see-below */);

Return Value

  • Always 0

  • The order‐dependent combined hash

Parameters

Name

Description

hasher

The hasher, unused in this base case

h

The function/callable which will hash the value.

t

First value to hash

ts

Remaining values to hash

Created with MrDocs