bsl::vector::erase

Erase elements from this vector.

Synopsis

Declared in <bslstl_vector.h>

vector<VALUE_TYPE, ALLOCATOR>::iterator
erase(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

NameDescription
positionelement position or insertion point