[#BloombergLP-bdlc-CompactedArray_ConstIterator-operator_subs] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray_ConstIterator]::operator[] :relfileprefix: ../../../ :mrdocs: Return a `const` reference to the element at the specified `offset` from the location referenced by this iterator. The behavior is undefined unless for this iterator, referencing a `CompactedArray` `array`, `CompactedArray_ConstIterator() != *this` and `0 <= *this ‐ array.begin() + offset < array.length()`. == Synopsis Declared in `<bdlc_compactedarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- TYPE const& operator[](std::ptrdiff_t offset) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#