[#BloombergLP-bdlc-CompactedArray_ConstIterator-operator_subs]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator]::operator&lsqb;&rsqb;
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

Declared in `&lt;bdlc&lowbar;compactedarray&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
TYPE const&
operator&lsqb;&rsqb;(std::ptrdiff&lowbar;t offset) const;
----

== Description

Return a `const` reference to the element at the specified `offset` from the location referenced by this iterator&period; The behavior is undefined unless for this iterator, referencing a `CompactedArray` `array`, `CompactedArray&lowbar;ConstIterator() !&equals; &ast;this` and `0 &lt;&equals; &ast;this &hyphen; array&period;begin() &plus; offset &lt; array&period;length()`&period;

== Return Value

const reference to the element at `offset`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *offset*
| offset from this iterator&apos;s position
|===


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