[#bsl-erase_if-076] = xref:bsl.adoc[bsl]::erase_if :relfileprefix: ../ :mrdocs: Erase all the elements in the specified list `l` that satisfy the specified predicate `predicate`. Return the number of elements erased. == Synopsis Declared in `<bslstl_list.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE, class ALLOCATOR, class PREDICATE> bsl::list<VALUE, ALLOCATOR>::size_type erase_if( xref:bsl/list-054.adoc[list<VALUE, ALLOCATOR>]& l, PREDICATE predicate); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#