[#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 unique element at the specified `index`. == Synopsis Declared in `<bdlc_compactedarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- TYPE const& uniqueElement(std::size_t index) const; ---- == Description Return a `const` reference to the element at the specified `index` within the sorted sequence of unique element values in this object. The behavior is undefined unless `index < uniqueLength()`. Note that `uniqueElement(index)` and `operator` can return different objects. == Return Value const reference to the unique element at `index` == Parameters [cols="1,4"] |=== | Name| Description | *index* | index into the sorted unique‐element sequence |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#