[#bsl-vector-086-erase-00]
= xref:bsl.adoc[bsl]::xref:bsl/vector-086.adoc[vector&lt;VALUE&lowbar;TYPE*, ALLOCATOR&gt;]::erase
:relfileprefix: ../../
:mrdocs:

Erase elements from this vector&period;

== Synopses

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

Erase elements from this vector&period;


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

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

Erase elements from this vector&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/vector-086/iterator.adoc[vector&lt;VALUE&lowbar;TYPE*, ALLOCATOR&gt;::iterator]
xref:bsl/vector-086/erase-08.adoc[erase](
    xref:bsl/vector-086/const_iterator.adoc[const&lowbar;iterator] first,
    xref:bsl/vector-086/const_iterator.adoc[const&lowbar;iterator] last);
----

[.small]#xref:bsl/vector-086/erase-08.adoc[_» more&period;&period;&period;_]#

== Return Value

iterator following the last erased element, or `end()` if none remain

== Parameters

[cols="1,4"]
|===
| Name| Description
| *position*
| element position or insertion point
| *first*
| beginning of the range (inclusive)
| *last*
| end of the range (exclusive)
|===


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