Erase elements from this vector.
Synopsis
Declared in <bslstl_vector.h>
vector<VALUE_TYPE, ALLOCATOR>::iterator
erase(
const_iterator first,
const_iterator last);
Description
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).
Return Value
iterator following the last erased element, or end() if none remain
Parameters
Name |
Description |
first |
beginning of the range (inclusive) |
last |
end of the range (exclusive) |
Created with MrDocs