[#bsl-list-054-remove_if] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::remove_if :relfileprefix: ../../ :mrdocs: Erase all elements for which `predicate` is true; return the count. == Synopsis Declared in `<bslstl_list.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class PREDICATE> xref:bsl/list-054/size_type.adoc[list<VALUE, ALLOCATOR>::size_type] remove_if(PREDICATE predicate); ---- == Return Value number of elements erased == Parameters [cols="1,4"] |=== | Name| Description | *predicate* | unary predicate selecting elements to erase |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#