[#bsl-list-054-remove] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::remove :relfileprefix: ../../ :mrdocs: Erase all the elements having the specified `value` from this list and return the number of erased elements. == Synopsis Declared in `<bslstl_list.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/list-054/size_type.adoc[list<VALUE, ALLOCATOR>::size_type] remove(xref:bsl/list-054/value_type.adoc[value_type] const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#