[#BloombergLP-bdlc-PackedIntArray-0b-2constructor-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray]::PackedIntArray :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlc_packedintarray.h>` Create an empty `PackedIntArray`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlc/PackedIntArray-0b/2constructor-0e.adoc[PackedIntArray](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArray-0b/2constructor-0e.adoc[_» more..._]# Create a `PackedIntArray` with the value of `original`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlc/PackedIntArray-0b/2constructor-0f.adoc[PackedIntArray]( xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray] const& original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArray-0b/2constructor-0f.adoc[_» more..._]# Create a `PackedIntArray` of the specified length. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlc/PackedIntArray-0b/2constructor-06.adoc[PackedIntArray]( std::size_t numElements, TYPE value = 0, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArray-0b/2constructor-06.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]#