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

Create an empty `PackedIntArrayImp`&period;


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

Create a `PackedIntArrayImp` with the value of `original`&period;


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

Create a `PackedIntArrayImp` of the specified length&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlc/PackedIntArrayImp-0a/2constructor-0910.adoc[PackedIntArrayImp](
    std::size&lowbar;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&period;&period;&period;_]#

== 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]#
