mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 00:50:38 +08:00
Add missing const
This commit is contained in:
Vendored
+1
-1
@@ -3409,7 +3409,7 @@ public:
|
||||
}
|
||||
|
||||
template <class K = key_type, class F>
|
||||
bool if_contains(const key_arg<K>& key, F&& f) {
|
||||
bool if_contains(const key_arg<K>& key, F&& f) const {
|
||||
typename Lockable::SharedLock m;
|
||||
auto it = const_cast<parallel_hash_map*>(this)->find(key, hash(key), m);
|
||||
if (it == this->end())
|
||||
|
||||
Reference in New Issue
Block a user