20 #ifndef BEAST_UTILITY_HASH_PAIR_H_INCLUDED
21 #define BEAST_UTILITY_HASH_PAIR_H_INCLUDED
26 #include <boost/functional/hash.hpp>
27 #include <boost/utility/base_from_member.hpp>
32 template <
class First,
class Second>
34 :
private boost::base_from_member<std::hash<First>, 0>,
35 private boost::base_from_member<std::hash<Second>, 1>
38 using first_hash = boost::base_from_member<std::hash<First>, 0>;
39 using second_hash = boost::base_from_member<std::hash<Second>, 1>;
57 boost::hash_combine(result, second_hash::member(value.
second));
65 boost::hash_combine(result, second_hash::member(value.
second));