[#BloombergLP-bdlc-PackedIntArray-0b-2constructor-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray]::PackedIntArray :relfileprefix: ../../../ :mrdocs: Create a `PackedIntArray` of the specified length. == Synopsis Declared in `<bdlc_packedintarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit PackedIntArray( std::size_t numElements, TYPE value = 0, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Create a `PackedIntArray` having the specified `numElements`. Optionally specify a `value` to which each element will be set. If value is not specified, 0 is used. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. == Parameters [cols="1,4"] |=== | Name| Description | *numElements* | number of elements in the new array | *value* | initial value for each element | *basicAllocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#