[#BloombergLP-bdlc-PackedIntArrayImp-0a-2constructor-0919] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArrayImp-0a.adoc[PackedIntArrayImp]::PackedIntArrayImp :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlc_packedintarray.h>` Create an empty `PackedIntArrayImp`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlc/PackedIntArrayImp-0a/2constructor-0d.adoc[PackedIntArrayImp](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArrayImp-0a/2constructor-0d.adoc[_» more..._]# Create a `PackedIntArrayImp` with the value of `original`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlc/PackedIntArrayImp-0a/2constructor-06.adoc[PackedIntArrayImp]( xref:BloombergLP/bdlc/PackedIntArrayImp-0a.adoc[PackedIntArrayImp] const& original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArrayImp-0a/2constructor-06.adoc[_» more..._]# Create a `PackedIntArrayImp` of the specified length. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlc/PackedIntArrayImp-0a/2constructor-0910.adoc[PackedIntArrayImp]( std::size_t numElements, xref:BloombergLP/bdlc/PackedIntArrayImp-0a/ElementType.adoc[ElementType] value = 0, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArrayImp-0a/2constructor-0910.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | allocator used to supply memory | *original* | array to copy | *numElements* | number of elements in the new array | *value* | initial value for each element |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#