absl::FixedArray::operator[]

Subscript operators

Synopses

Declared in <absl/container/fixed_array.h>

Returns a reference to the ith element of the fixed array.

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

Returns a const reference to the ith element of the fixed array.

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.