//------------------------------------------------------------------------------ /* This file is part of Beast: https://github.com/vinniefalco/Beast Copyright 2014, Howard Hinnant , Vinnie Falco #include namespace beast { // Universal hash function template struct uhash { explicit 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