[#bsl-vector-099-erase-07]
= xref:bsl.adoc[bsl]::xref:bsl/vector-099.adoc[vector&lt;pair&lt;Date, DayOfWeekSet&gt;&gt;]::erase
:relfileprefix: ../../
:mrdocs:

`erase` overloads

== Synopses

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

Remove from this vector the element at the specified `position`, and return an iterator providing modifiable access to the element immediately following the removed element, or the position returned by the method `end` if the removed element was the last in the sequence&period; The behavior is undefined unless `position` is an iterator in the range `&lsqb;cbegin() &period;&period; cend())&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/vector-099/iterator.adoc[iterator]
xref:bsl/vector-099/erase-02.adoc[erase](xref:bsl/vector-099/const_iterator.adoc[const&lowbar;iterator] position);
----

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

Remove from this vector the sequence of elements starting at the specified `first` position and ending before the specified `last` position, and return an iterator providing modifiable access to the element immediately following the last removed element, or the position returned by the method `end` if the removed elements were last in the sequence&period; The behavior is undefined unless `first` is an iterator in the range `&lsqb;cbegin() &period;&period; cend()&rsqb;` (both endpoints included) and `last` is an iterator in the range `&lsqb;first &period;&period; cend()&rsqb;` (both endpoints included)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/vector-099/iterator.adoc[iterator]
xref:bsl/vector-099/erase-03.adoc[erase](
    xref:bsl/vector-099/const_iterator.adoc[const&lowbar;iterator] first,
    xref:bsl/vector-099/const_iterator.adoc[const&lowbar;iterator] last);
----

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


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