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:
stdpain
2022-06-21 20:54:29 +08:00
parent a0f0493e2a
commit 40afe134cb
+1 -1
View File
@@ -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);