[#bsl-vector-00d-erase-0a] = xref:bsl.adoc[bsl]::xref:bsl/vector-00d.adoc[vector]::erase :relfileprefix: ../../ :mrdocs: Erase elements from this vector. == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vector-00d/iterator.adoc[vector<VALUE_TYPE, ALLOCATOR>::iterator] erase(xref:bsl/vector-00d/const_iterator.adoc[const_iterator] position); ---- == Description 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())]`. == 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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#