mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
improve hash value computation for tuples
This commit is contained in:
Vendored
+2
-1
@@ -345,7 +345,8 @@ private:
|
||||
_hash_helper(const std::tuple<P...> &t) const noexcept {
|
||||
const auto &el = std::get<I>(t);
|
||||
using el_type = typename std::remove_cv<typename std::remove_reference<decltype(el)>::type>::type;
|
||||
return phmap::Hash<el_type>()(el) + _hash_helper<I + 1>(t);
|
||||
return Combiner<size_t, sizeof(size_t)>()(
|
||||
phmap::Hash<el_type>()(el), _hash_helper<I + 1>(t));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user