[#bsl-list-054-remove]
= xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::remove
:relfileprefix: ../../
:mrdocs:

Erase all elements equal to `value` and return how many were erased&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;list&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/list-054/size_type.adoc[list&lt;VALUE, ALLOCATOR&gt;::size&lowbar;type]
remove(xref:bsl/list-054/value_type.adoc[value&lowbar;type] const& value);
----

== Return Value

number of elements erased

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| value of elements to remove
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
