Go to the documentation of this file.
78 #ifndef ABSL_HASH_HASH_H_
79 #define ABSL_HASH_HASH_H_
84 #include "absl/functional/function_ref.h"
85 #include "absl/hash/internal/hash.h"
246 template <
typename T>
263 template <
int&... ExplicitArgumentBarrier,
typename...
Types>
265 auto tuple = std::tie(
values...);
320 template <
typename T>
336 using HashState::HashStateBase::combine;
343 const unsigned char*
first,
size_t size) {
347 using HashState::HashStateBase::combine_contiguous;
354 template <
typename T>
361 template <
typename T>
368 template <
typename HS>
370 template <
typename T,
typename ConsumerT>
373 [&](
HashState& inner_erased) { inner_cb(inner_erased.
Real<
T>()); });
379 template <
typename T>
387 T& real_state =
state.Real<
T>();
388 real_state = T::RunCombineUnordered(
393 template <
typename CombinerT>
395 auto*
run =
state.run_combine_unordered_;
406 template <
typename T>
408 return *
static_cast<T*
>(
state_);
421 #endif // ABSL_HASH_HASH_H_
static HashState Create(T *state)
size_t HashOf(const Types &... values)
static void CombineContiguousImpl(void *p, const unsigned char *first, size_t size)
void(* combine_contiguous_)(void *, const unsigned char *, size_t)
friend class HashState::HashStateBase
absl::FunctionRef< void(HS, absl::FunctionRef< void(HS &)>)> f
#define ABSL_NAMESPACE_END
#define T(upbtypeconst, upbtype, ctype, default_value)
internal::ProxyTypeList< Ts... > Types
#define ABSL_NAMESPACE_BEGIN
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
HashState(* run_combine_unordered_)(HashState state, absl::FunctionRef< void(HashState, absl::FunctionRef< void(HashState &)>)>)
static HashState RunCombineUnordered(HashState state, CombinerT combiner)
void operator()(T inner_state, ConsumerT inner_cb)
std::array< int64_t, Size > values
static HashState RunCombineUnorderedImpl(HashState state, absl::FunctionRef< void(HashState, absl::FunctionRef< void(HashState &)>)> f)
HashState & operator=(const HashState &)=delete
void Init(HashState *state)
static struct rpc_state state
static HashState combine_contiguous(HashState hash_state, const unsigned char *first, size_t size)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:00