absl::InlinedVector::erase

erase overloads

Synopses

Declared in <absl/container/inlined_vector.h>

Erases the element at pos, returning an iterator pointing to where the erased element was located.

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

Overload of InlinedVector::erase(...) that erases every element in the range [from, to), returning an iterator pointing to where the first] erased element was located.

iterator
erase(
    const_iterator from,
    const_iterator to);
» more...

Return Value

  • An iterator to the element that followed the erased element.
  • An iterator to the element that followed the erased range.

Parameters

NameDescription
posThe position of the element to erase.
fromAn iterator to the beginning of the range to erase.
toAn iterator past the end of the range to erase.