[#bsl-deque-0c-erase-0f]
= xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::erase
:relfileprefix: ../../
:mrdocs:

`erase` overloads

== Synopses

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

Erase the element at `position` from this deque&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/deque-0c/iterator-02.adoc[deque&lt;VALUE&lowbar;TYPE, ALLOCATOR&gt;::iterator]
xref:bsl/deque-0c/erase-03.adoc[erase](xref:bsl/deque-0c/const_iterator.adoc[const&lowbar;iterator] position);
----

[.small]#xref:bsl/deque-0c/erase-03.adoc[_» more&period;&period;&period;_]#

Erase the half&hyphen;open range `&lsqb;first, last)&rsqb;` from this deque&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/deque-0c/iterator-02.adoc[deque&lt;VALUE&lowbar;TYPE, ALLOCATOR&gt;::iterator]
xref:bsl/deque-0c/erase-0a.adoc[erase](
    xref:bsl/deque-0c/const_iterator.adoc[const&lowbar;iterator] first,
    xref:bsl/deque-0c/const_iterator.adoc[const&lowbar;iterator] last);
----

[.small]#xref:bsl/deque-0c/erase-0a.adoc[_» more&period;&period;&period;_]#

== Return Value

* iterator to the element following the erased element
* iterator to the element following the last erased element

== Parameters

[cols="1,4"]
|===
| Name| Description
| *position*
| iterator to the element to erase
| *first*
| iterator to the first element to erase
| *last*
| iterator past the last element to erase
|===


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