[#BloombergLP-bdlc-CompactedArray-resize] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray]::resize :relfileprefix: ../../../ :mrdocs: Set the length of this array to the specified `numElements`. If `numElements > length()`, the added elements are initialized to `TYPE()`. == Synopsis Declared in `<bdlc_compactedarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void resize(std::size_t numElements); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#