util/IntrusiveHashSet: rename remove_and_dispose() to remove_and_dispose_key()

This commit is contained in:
Max Kellermann 2023-08-03 09:48:52 +02:00 committed by Max Kellermann
parent 2cd5f4cd3e
commit 250fa8c732
1 changed files with 4 additions and 4 deletions

View File

@ -200,16 +200,16 @@ public:
/**
* Remove and dispose all items with the specified key.
*/
constexpr void remove_and_dispose(const auto &key,
Disposer<value_type> auto disposer) noexcept {
constexpr void remove_and_dispose_key(const auto &key,
Disposer<value_type> auto disposer) noexcept {
auto &bucket = GetBucket(key);
counter -= bucket.remove_and_dispose_if([this, &key](const auto &item){
return ops.equal(key, item);
}, disposer);
}
constexpr void remove_and_dispose_if(const auto &key,
std::predicate<const_reference> auto pred,
constexpr void remove_and_dispose_key_if(const auto &key,
std::predicate<const_reference> auto pred,
Disposer<value_type> auto disposer) noexcept {
auto &bucket = GetBucket(key);
counter -= bucket.remove_and_dispose_if([this, &key, &pred](const auto &item){