Removes the elements in the range [first, last) and returns an iterator to the following element.]

Synopsis

Declared in <prevector.h>

iterator
erase(
    iterator first,
    iterator last);

Return Value

An iterator to the element following the removed range.

Parameters

Name

Description

first

Iterator to the first element to remove.

last

Iterator one past the last element to remove.

Created with MrDocs