[#bsl-list-054-remove_if]
= xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::remove&lowbar;if
:relfileprefix: ../../
:mrdocs:

Erase all the elements in this list for which the specified unary `predicate` returns `true` and return the number of erased elements&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;list&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class PREDICATE&gt;
xref:bsl/list-054/size_type.adoc[list&lt;VALUE, ALLOCATOR&gt;::size&lowbar;type]
remove&lowbar;if(PREDICATE predicate);
----


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