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

Create a `PackedIntArrayImp` having the specified `numElements`&period; Optionally specify a `value` to which each element will be set&period; If value is not specified, 0 is used&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
PackedIntArrayImp(
    std::size&lowbar;t numElements,
    xref:BloombergLP/bdlc/PackedIntArrayImp-0a/ElementType.adoc[ElementType] value = 0,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


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