29 #ifndef PIRANHA_DETAIL_VECTOR_HASHER_HPP 30 #define PIRANHA_DETAIL_VECTOR_HASHER_HPP 32 #include <boost/functional/hash.hpp> 41 template <
typename Vector>
42 inline std::size_t vector_hasher(
const Vector &v)
44 using value_type =
typename Vector::value_type;
45 const auto size = v.size();
50 std::hash<value_type> hasher;
54 std::hash<value_type> hasher;
55 std::size_t retval = hasher(v[0u]);
56 for (decltype(v.size()) i = 1u; i < size; ++i) {
57 boost::hash_combine(retval, hasher(v[i]));