diff --git a/libs/util/include/psemek/util/hash.hpp b/libs/util/include/psemek/util/hash.hpp index a2ae01e8..2c5dbd64 100644 --- a/libs/util/include/psemek/util/hash.hpp +++ b/libs/util/include/psemek/util/hash.hpp @@ -16,6 +16,17 @@ namespace psemek::util seed = b * k; } + struct any_hash + { + struct is_transparent{}; + + template + std::size_t operator() (T const & x) const + { + return std::hash{}(x); + } + }; + } namespace std