Lines Matching defs:hash
23 #include <functional> // hash, less
5908 // #include <nlohmann/detail/hash.hpp>
5921 #include <functional> // hash
5940 @brief hash a JSON value
5942 The hash function tries to rely on std::hash where possible. Furthermore, the
5943 type of the JSON value is taken into account to have different hash values for
5947 @param j JSON value to hash
5948 @return hash value of j
5951 std::size_t hash(const BasicJsonType& j)
5972 const auto h = std::hash<string_t> {}(element.key());
5974 seed = combine(seed, hash(element.value()));
5984 seed = combine(seed, hash(element));
5991 const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>());
5997 const auto h = std::hash<bool> {}(j.template get<bool>());
6003 const auto h = std::hash<number_integer_t> {}(j.template get<number_integer_t>());
6009 const auto h = std::hash<number_unsigned_t> {}(j.template get<number_unsigned_t>());
6015 const auto h = std::hash<number_float_t> {}(j.template get<number_float_t>());
6022 const auto h = std::hash<bool> {}(j.get_binary().has_subtype());
6027 seed = combine(seed, std::hash<std::uint8_t> {}(byte));
24338 /// @brief hash value for JSON objects
24341 struct hash<nlohmann::NLOHMANN_BASIC_JSON_TPL>
24345 return nlohmann::detail::hash(j);