[#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 `&lt;bdlc&lowbar;packedintarray&period;h&gt;`

Create an empty `PackedIntArray`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[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&period;&period;&period;_]#

Create a `PackedIntArray` having the same value as the specified `original` one&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[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&period;&period;&period;_]#

Create a `PackedIntArray` 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;


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

[.small]#xref:BloombergLP/bdlc/PackedIntArray-0b/2constructor-06.adoc[_» more&period;&period;&period;_]#


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