Lines Matching defs:hash
13 #include <functional> // hash
30 @brief hash a JSON value
32 The hash function tries to rely on std::hash where possible. Furthermore, the
33 type of the JSON value is taken into account to have different hash values for
37 @param j JSON value to hash
38 @return hash value of j
41 std::size_t hash(const BasicJsonType& j)
62 const auto h = std::hash<string_t> {}(element.key());
64 seed = combine(seed, hash(element.value()));
74 seed = combine(seed, hash(element));
81 const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>());
87 const auto h = std::hash<bool> {}(j.template get<bool>());
93 const auto h = std::hash<number_integer_t> {}(j.template get<number_integer_t>());
99 const auto h = std::hash<number_unsigned_t> {}(j.template get<number_unsigned_t>());
105 const auto h = std::hash<number_float_t> {}(j.template get<number_float_t>());
112 const auto h = std::hash<bool> {}(j.get_binary().has_subtype());
117 seed = combine(seed, std::hash<std::uint8_t> {}(byte));