absl::Span::operator[]

Returns a reference to the ith element of this span.

Synopsis

Declared in <absl/types/span.h>

constexpr
reference
operator[](size_type i) const noexcept;

Return Value

A reference to the element at index i.

Parameters

NameDescription
iIndex of the element to access.