Erases all elements that satisfy the predicate pred from the container c.
Declared in <absl/container/node_hash_set.h>
template<
typename T,
typename H,
typename E,
typename A,
typename Predicate>
node_hash_set<T, H, E, A>::size_type
erase_if(
node_hash_set<T, H, E, A>& c,
Predicate pred);
The number of erased elements.
| Name | Description |
|---|---|
| c | The container to erase elements from. |
| pred | The predicate that selects which elements to erase. |