#ifndef BEAST_HASH_UHASH_H_INCLUDED #define BEAST_HASH_UHASH_H_INCLUDED #include #include namespace beast { // Universal hash function template struct uhash { uhash() = default; using result_type = typename Hasher::result_type; template result_type operator()(T const& t) const noexcept { Hasher h; hash_append(h, t); return static_cast(h); } }; } // namespace beast #endif