8#ifndef INCLUDED_BSLH_HASHVARIANT
9#define INCLUDED_BSLH_HASHVARIANT
104#include <bslscm_version.h>
114#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_BASELINE_LIBRARY
118#define BSLH_HASHVARIANT_DEFINE_HASH_MONOSTATE 1
129template <
class HASH_ALGORITHM>
132hashAppend(HASH_ALGORITHM& algorithm,
const std::monostate&)
141template <
class HASH_ALGORITHM,
class ... TYPE>
144hashAppend(HASH_ALGORITHM& algorithm,
const std::variant<TYPE ...> &input)
147 std::visit([&](
const auto& x) {
hashAppend(algorithm, x); }, input);
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bslh_defaulthashalgorithm.h:339
bsl::enable_if<(bsl::is_integral< TYPE >::value||bsl::is_pointer< TYPE >::value||bsl::is_enum< TYPE >::value)&&!bsl::is_same< TYPE, bool >::value >::type hashAppend(HASH_ALGORITHM &hashAlg, TYPE input)
Definition bslh_hash.h:638