absl::InlinedVector::operator[]

Subscript operators

Synopses

Declared in <absl/container/inlined_vector.h>

Returns a reference to the ith element of the inlined vector.

reference
operator[](size_type i);
» more...

Overload of InlinedVector::operator that returns a const_reference to the ith element of the inlined vector.

const_reference
operator[](size_type i) const;
» more...

Return Value

  • A reference to the ith element.
  • A const_reference to the ith element.

Parameters

NameDescription
iThe index of the element to access.