[#BloombergLP-bdlc-PackedIntArray-08-capacity] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-08.adoc[PackedIntArray<int>]::capacity :relfileprefix: ../../../ :mrdocs: Return the number of elements this array can hold in terms of the current data type used to store its elements. == Synopsis Declared in `<bdlc_packedintarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t capacity() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#