[#absl-erase_if-0f7] = xref:absl.adoc[absl]::erase_if :relfileprefix: ../ :mrdocs: Erases all elements that satisfy the predicate `pred` from the container `c`. == Synopsis Declared in `<absl/container/node_hash_set.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename H, typename E, typename A, typename Predicate> node_hash_set<T, H, E, A>::size_type erase_if( xref:absl/node_hash_set.adoc[node_hash_set<T, H, E, A>]& c, Predicate pred); ---- == Return Value The number of erased elements. == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container to erase elements from. | *pred* | The predicate that selects which elements to erase. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#