[#BloombergLP-bdlc-CompactedArray-capacity] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray]::capacity :relfileprefix: ../../../ :mrdocs: Return the number of elements this array can hold, without reallocation, assuming the number of unique elements within this array does not increase. == Synopsis Declared in `<bdlc_compactedarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t capacity() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#