[#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&period;

== Synopsis

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

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

== Return Value

current capacity of this array


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