[#BloombergLP-bslstl-RandomAccessIterator-operator_subs]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/RandomAccessIterator.adoc[RandomAccessIterator]::operator&lsqb;&rsqb;
:relfileprefix: ../../../
:mrdocs:

Return a reference to the element at the specified index offset&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;randomaccessiterator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T&
operator&lsqb;&rsqb;(xref:BloombergLP/bslstl/RandomAccessIterator/difference_type.adoc[difference&lowbar;type] index) const;
----

== Description

Return a reference to the element at the specified `index` positions past the current one&period; The behavior is undefined unless the referenced position lies within the underlying sequence&period; Note that `index` may be negative&period;

== Return Value

reference to the element at the specified index offset

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| offset from the current iterator position
|===


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