[#bsl-erase-086] = xref:bsl.adoc[bsl]::erase :relfileprefix: ../ :mrdocs: Erase all the elements in the specified list `l` that compare equal to the specified `value`. Return the number of elements erased. == Synopsis Declared in `<bslstl_list.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE, class ALLOCATOR, class BDE_OTHER_TYPE> bsl::list<VALUE, ALLOCATOR>::size_type erase( xref:bsl/list-054.adoc[list<VALUE, ALLOCATOR>]& l, BDE_OTHER_TYPE const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#