[#bsl-erase-082]
= xref:bsl.adoc[bsl]::erase
:relfileprefix: ../
:mrdocs:

Erase all the elements in the specified deque `deq` that compare equal to the specified `value`&period; Return the number of elements erased&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE&lowbar;TYPE,
    class ALLOCATOR,
    class BDE&lowbar;OTHER&lowbar;TYPE&gt;
deque&lt;VALUE&lowbar;TYPE, ALLOCATOR&gt;::size&lowbar;type
erase(
    xref:bsl/deque-0c.adoc[deque&lt;VALUE&lowbar;TYPE, ALLOCATOR&gt;]& deq,
    BDE&lowbar;OTHER&lowbar;TYPE const& value);
----


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