[#bsl-multimap-0ae-erase-0c5] = xref:bsl.adoc[bsl]::xref:bsl/multimap-0ae.adoc[multimap]::erase :relfileprefix: ../../ :mrdocs: Erase all elements matching `key`. == Synopsis Declared in `<bslstl_multimap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_KEY> xref:bsl/multimap-0ae/size_type.adoc[size_type] erase(t_KEY&& key) requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR, t_KEY>::value && !is_convertible<BSLS_COMPILERFEATURES_FORWARD_REF(t_KEY), iterator>::value && !is_convertible<BSLS_COMPILERFEATURES_FORWARD_REF(t_KEY), const_iterator>::value; ---- == Description Remove all elements whose keys compare equivalent to the specified transparent `key`, and return the number of elements erased. == Return Value number of elements erased == Parameters [cols="1,4"] |=== | Name| Description | *key* | key whose matching elements are erased |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#