mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 00:50:38 +08:00
fix wrong function type for parallel_hash_set::lazy_emplace_with_hash
in flat_hash_set the proto type is `iterator lazy_emplace_with_hash(const key_arg<K>& key, size_t& hashval, F&& f)`.
This commit is contained in:
Vendored
+1
-1
@@ -3103,7 +3103,7 @@ public:
|
||||
}
|
||||
|
||||
template <class K = key_type, class F>
|
||||
iterator lazy_emplace_with_hash(size_t hashval, const key_arg<K>& key, F&& f) {
|
||||
iterator lazy_emplace_with_hash(const key_arg<K>& key, size_t hashval, F&& f) {
|
||||
Inner& inner = sets_[subidx(hashval)];
|
||||
auto& set = inner.set_;
|
||||
typename Lockable::UniqueLock m(inner);
|
||||
|
||||
Reference in New Issue
Block a user