[#bsl-erase_if-0a4] = xref:bsl.adoc[bsl]::erase_if :relfileprefix: ../ :mrdocs: Erase every element of `m` that satisfies `predicate`. == Synopsis Declared in `<bslstl_unorderedmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class VALUE, class HASH, class EQUAL, class ALLOCATOR, class PREDICATE> bsl::unordered_map<KEY, VALUE, HASH, EQUAL, ALLOCATOR>::size_type erase_if( xref:bsl/unordered_map-02b.adoc[unordered_map<KEY, VALUE, HASH, EQUAL, ALLOCATOR>]& m, PREDICATE predicate); ---- == Description Erase all the elements in the specified unordered_map `m` that satisfy the specified predicate `predicate`. Return the number of elements erased. == Return Value number of elements erased == Parameters [cols="1,4"] |=== | Name| Description | *m* | unordered map from which matching elements are erased | *predicate* | unary predicate selecting elements to erase |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#