mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 00:50:38 +08:00
small improvement in std::pair hashing
This commit is contained in:
Vendored
+1
-1
@@ -323,7 +323,7 @@ using HashState = HashStateBase<size_t>;
|
||||
template<class T1, class T2>
|
||||
struct Hash<std::pair<T1, T2>> {
|
||||
size_t operator()(std::pair<T1, T2> const& p) const noexcept {
|
||||
return phmap::HashState().combine(0, p.first, p.second);
|
||||
return phmap::HashState().combine(phmap::Hash<T1>()(p.first), p.second);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user