[#BloombergLP-bslstl-RandomAccessIterator-operator_subs] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/RandomAccessIterator.adoc[RandomAccessIterator]::operator[] :relfileprefix: ../../../ :mrdocs: Return a reference to the element at the specified `index` positions past the current one. The behavior is undefined unless the referenced position lies within the underlying sequence. Note that `index` may be negative. == Synopsis Declared in `<bslstl_randomaccessiterator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- T& operator[](xref:BloombergLP/bslstl/RandomAccessIterator/difference_type.adoc[difference_type] index) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#