Remove the elements in the half-open range [first .. last)].
Declared in <bslstl_set.h>
set<KEY, COMPARATOR, ALLOCATOR>::iterator
erase(
const_iterator first,
const_iterator last);
Return last. This method invalidates only iterators and references to the removed element and previously saved values of the end() iterator. The behavior is undefined unless first and last either refer to elements in this set or are the end iterator, and the first position is at or before the last position in the ordered sequence provided by this container.
last
| Name | Description |
|---|---|
| first | beginning of the range to erase (inclusive) |
| last | end of the range to erase (exclusive) |