[#BloombergLP-bdlc-PackedIntArrayImp-0a-resize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArrayImp-0a.adoc[PackedIntArrayImp]::resize
:relfileprefix: ../../../
:mrdocs:

Set the length of this array to the specified `numElements`&period;

== Synopsis

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

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

== Description

If `numElements &gt; length()`, the added elements are initialized to 0&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numElements*
| new length of this array
|===


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