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