[#BloombergLP-bdlc-PackedIntArrayImp-02-2constructor-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArrayImp-02.adoc[PackedIntArrayImp&lt;PackedIntArrayImp&lowbar;Unsigned&gt;]::PackedIntArrayImp
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create an empty `PackedIntArrayImp`&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/PackedIntArrayImp-02/2constructor-06.adoc[PackedIntArrayImp](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

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

Create a `PackedIntArrayImp` 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/PackedIntArrayImp-02/2constructor-00.adoc[PackedIntArrayImp](
    xref:BloombergLP/bdlc/PackedIntArrayImp-0a.adoc[PackedIntArrayImp&lt;PackedIntArrayImp&lowbar;Unsigned&gt;] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlc/PackedIntArrayImp-02/2constructor-00.adoc[_» more&period;&period;&period;_]#

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;


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

[.small]#xref:BloombergLP/bdlc/PackedIntArrayImp-02/2constructor-04.adoc[_» more&period;&period;&period;_]#


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