diff --git a/libs/util/include/psemek/util/hash.hpp b/libs/util/include/psemek/util/hash.hpp index 2c5dbd64..349a7b0b 100644 --- a/libs/util/include/psemek/util/hash.hpp +++ b/libs/util/include/psemek/util/hash.hpp @@ -32,6 +32,19 @@ namespace psemek::util namespace std { + template + struct hash> + : std::pair, std::hash> + { + std::size_t operator()(std::pair const & x) const + { + std::size_t seed = 0; + ::psemek::util::hash_combine(seed, this->first(x.first)); + ::psemek::util::hash_combine(seed, this->second(x.second)); + return seed; + } + }; + template struct hash> : std::tuple...>