[#BloombergLP-bdlc-CompactedArray-uniqueElement]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray]::uniqueElement
:relfileprefix: ../../../
:mrdocs:

Return a `const` reference to the element at the specified `index` within the sorted sequence of unique element values in this object&period; The behavior is undefined unless `index &lt; uniqueLength()`&period; Note that `uniqueElement(index)` and `operator` can return different objects&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
TYPE const&
uniqueElement(std::size&lowbar;t index) const;
----


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