absl::FixedArray::at

at overloads

Synopses

Declared in <absl/container/fixed_array.h>

Bounds-checked access. Returns a reference to the ith element of the fixed array, or throws std::out_of_range.

reference
at(size_type i);
» more...

Bounds-checked access. Returns a const reference to the ith element of the fixed array, or throws std::out_of_range.

const_reference
at(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.