[#BloombergLP-bdlc-PackedIntArray-08-2constructor-096] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-08.adoc[PackedIntArray<int>]::PackedIntArray :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlc_packedintarray.h>` Create an empty `PackedIntArray`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlc/PackedIntArray-08/2constructor-090.adoc[PackedIntArray](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArray-08/2constructor-090.adoc[_» more..._]# Create a `PackedIntArray` having the same value as the specified `original` one. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlc/PackedIntArray-08/2constructor-05.adoc[PackedIntArray]( xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray<int>] const& original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArray-08/2constructor-05.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlc/PackedIntArray-08/2constructor-0c.adoc[PackedIntArray]( std::size_t numElements, int value = 0, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArray-08/2constructor-0c.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#