[#bsl-set-0d-erase-04] = xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::erase :relfileprefix: ../../ :mrdocs: Same as the preceding overload, using the specified transparent `key`. == Synopsis Declared in `<bslstl_set.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_KEY> xref:bsl/set-0d/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; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#