absl::Span::at

Returns a reference to the ith element, with bounds checking.

Synopsis

Declared in <absl/types/span.h>

constexpr
reference
at(size_type i) const;

Return Value

A reference to the element at index i.

Parameters

NameDescription
iIndex of the element to access.