util/IntrusiveHashSet: rename remove_and_dispose() to remove_and_dispose_key()
This commit is contained in:
parent
2cd5f4cd3e
commit
250fa8c732
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue