util/IntrusiveHashSet: check key equivalence in remove_and_dispose_if()
This commit is contained in:
parent
e2abade6aa
commit
c65b1fee8d
|
@ -214,7 +214,9 @@ public:
|
|||
static_assert(!constant_time_size, "Not yet implemented");
|
||||
|
||||
auto &bucket = GetBucket(key);
|
||||
bucket.remove_and_dispose_if(pred, disposer);
|
||||
bucket.remove_and_dispose_if([this, &key, &pred](const auto &item){
|
||||
return equal(key, item) && pred(item);
|
||||
}, disposer);
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
|
|
Loading…
Reference in New Issue