[#absl-Span-operator_subs]
= xref:absl.adoc[absl]::xref:absl/Span.adoc[Span]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

Returns a reference to the `i`th element of this span&period;

== Synopsis

Declared in `&lt;absl&sol;types&sol;span&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/Span/reference.adoc[reference]
operator&lsqb;&rsqb;(xref:absl/Span/size_type.adoc[size&lowbar;type] i) const noexcept;
----

== Return Value

A reference to the element at index `i`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *i*
| Index of the element to access&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
