[#bsl-erase_if-074] = xref:bsl.adoc[bsl]::erase_if :relfileprefix: ../ :mrdocs: Erase all the elements in the specified unordered_multiset `ms` that satisfy the specified predicate `predicate`. Return the number of elements erased. == Synopsis Declared in `<bslstl_unorderedmultiset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class HASH, class EQUAL, class ALLOCATOR, class PREDICATE> bsl::unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR>::size_type erase_if( xref:bsl/unordered_multiset-06c.adoc[unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR>]& ms, PREDICATE predicate); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#