absl::AbslHashValue

AbslHashValue overloads

Synopses

Declared in <absl/container/inlined_vector.h>

Combines this duration into a hash state.

template<typename H>
H
AbslHashValue(
    H h,
    Duration d);
» more...

Computes a hash value for x, combining it into the hash state h.

template<typename H>
H
AbslHashValue(
    H h,
    FastTypeIdType x);
» more...

Hashes the span's elements for use with absl::Hash.

template<typename H>
H
AbslHashValue(
    H h,
    Span v);
» more...

Combines this time into a hash state.

template<typename H>
H
AbslHashValue(
    H h,
    Time t);
» more...

Combines this time zone into a hash state.

template<typename H>
H
AbslHashValue(
    H h,
    TimeZone tz);
» more...

Combines this value into a hash state, supporting absl::Hash.

template<typename H>
H
AbslHashValue(
    H h,
    int128 v);
» more...

Combines this value into a hash state, supporting absl::Hash.

template<typename H>
H
AbslHashValue(
    H h,
    uint128 v);
» more...

Combines the contents of the fixed array into a hash state.

template<typename H>
H
AbslHashValue(
    H h,
    FixedArray const& v);
» more...

Combines the Cord's contents into a hash state.

template<typename H>
H
AbslHashValue(
    H hash_state,
    absl::Cord const& c);
» more...

Hashes the span's elements for use with absl::Hash.

template<typename H>
constexpr
H
AbslHashValue(
    H state,
    AnySpan any_span);
» more...
template<typename State>
State
AbslHashValue(
    State h,
    btree_map const& b);
» more...
template<typename State>
State
AbslHashValue(
    State h,
    btree_multimap const& b);
» more...
template<typename State>
State
AbslHashValue(
    State h,
    btree_multiset const& b);
» more...
template<typename State>
State
AbslHashValue(
    State h,
    btree_set const& b);
» more...

Provides absl::Hash support for absl::InlinedVector. It is uncommon to call this directly.

template<
    typename H,
    typename T,
    size_t N,
    typename A>
H
AbslHashValue(
    H h,
    absl::InlinedVector<T, N, A> const& a);
» more...

Provides absl::Hash support for absl::InlinedVector.

template<
    typename H,
    typename TheT,
    size_t TheN,
    typename TheA>
H
AbslHashValue(
    H h,
    absl::InlinedVector<TheT, TheN, TheA> const& a);
» more...

Return Value

  • The updated hash state.
  • The combined hash state.

Template Parameters

NameDescription
HThe hash state type.

Parameters

NameDescription
hThe hash state to combine into.
dThe duration to hash.
xThe value to hash.
vThe span whose elements are hashed.
tThe time to hash.
tzThe time zone to hash.
hash_stateThe hash state to combine into.
cThe Cord being hashed.
stateThe hash state to combine into.
any_spanThe span whose elements are hashed.
aThe inlined vector to hash.