absl::AnySpan::at

Returns a reference to the element at index, with bounds checking.

Synopsis

Declared in <absl/types/any_span.h>

constexpr
reference
at(size_type index) const;

Return Value

A reference to the element at index.

Parameters

NameDescription
indexIndex of the element to access.