prevector::erase

erase overloads

Synopses

Declared in <prevector.h>

Removes the element at pos and returns an iterator to the following element.

iterator
erase(iterator pos);
» more...

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

iterator
erase(
    iterator first,
    iterator last);
» more...

Return Value

  • An iterator to the element following the removed one.
  • An iterator to the element following the removed range.

Parameters

NameDescription
posIterator to the element to remove.
firstIterator to the first element to remove.
lastIterator one past the last element to remove.