[#bsl-vector-0cf-erase-02] = xref:bsl.adoc[bsl]::xref:bsl/vector-0cf.adoc[vector<unsigned char>]::erase :relfileprefix: ../../ :mrdocs: `erase` overloads == Synopses Declared in `<bslstl_vector.h>` 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. The behavior is undefined unless `position` is an iterator in the range `[cbegin() .. cend())]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vector-0cf/iterator.adoc[iterator] xref:bsl/vector-0cf/erase-08.adoc[erase](xref:bsl/vector-0cf/const_iterator.adoc[const_iterator] position); ---- [.small]#xref:bsl/vector-0cf/erase-08.adoc[_» more..._]# 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. The behavior is undefined unless `first` is an iterator in the range `[cbegin() .. cend()]` (both endpoints included) and `last` is an iterator in the range `[first .. cend()]` (both endpoints included). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vector-0cf/iterator.adoc[iterator] xref:bsl/vector-0cf/erase-06.adoc[erase]( xref:bsl/vector-0cf/const_iterator.adoc[const_iterator] first, xref:bsl/vector-0cf/const_iterator.adoc[const_iterator] last); ---- [.small]#xref:bsl/vector-0cf/erase-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#