[#absl-erase_if-042]
= xref:absl.adoc[absl]::erase&lowbar;if
:relfileprefix: ../
:mrdocs:

Erases all elements that satisfy the predicate `pred` from the container&period;

== Synopsis

Declared in `&lt;absl&sol;container&sol;btree&lowbar;set&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename K,
    typename C,
    typename A,
    typename Pred&gt;
btree&lowbar;multiset&lt;K, C, A&gt;::size&lowbar;type
erase&lowbar;if(
    xref:absl/btree_multiset.adoc[btree&lowbar;multiset&lt;K, C, A&gt;]& set,
    Pred pred);
----

== Return Value

The number of erased elements&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *set*
| The container to erase elements from&period;
| *pred*
| The predicate that selects which elements to erase&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
