absl::InlinedVector::erase

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.

Synopsis

Declared in <absl/container/inlined_vector.h>

iterator
erase(
    const_iterator from,
    const_iterator to);

Description

NOTE: may return end(), which is not dereferenceable.

Return Value

An iterator to the element that followed the erased range.

Parameters

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