2 #include <fmt/format.h>
3 #include <fmt/ranges.h>
23 std::vector<std::string> data;
24 for (
const auto& [key, value] : ch) {
25 data.emplace_back(fmt::format(
"({}:{})", key, value));
28 std::string strdata = fmt::format(
"{}", fmt::join(data,
","));
29 return std::hash<std::string>{}(strdata);
virtual std::map< std::string, size_t > child_hashes() const
virtual std::size_t hash() const
Hashable & operator=(const Hashable &)