[#BloombergLP-bslalg-ArrayPrimitives-uninitializedFillN-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ArrayPrimitives.adoc[ArrayPrimitives]::uninitializedFillN
:relfileprefix: ../../../
:mrdocs:

Fill an uninitialized array with copies of a value&period;

== Synopses

Declared in `&lt;bslalg&lowbar;arrayprimitives&period;h&gt;`

Fill an uninitialized array with copies of a value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
static
void
xref:BloombergLP/bslalg/ArrayPrimitives/uninitializedFillN-0a.adoc[uninitializedFillN](
    bsl::allocator&lowbar;traits&lt;ALLOCATOR&gt;::pointer begin,
    xref:BloombergLP/bslalg/ArrayPrimitives/size_type.adoc[size&lowbar;type] numElements,
    bsl::allocator&lowbar;traits&lt;ALLOCATOR&gt;::value&lowbar;type const& value,
    ALLOCATOR allocator);
----

[.small]#xref:BloombergLP/bslalg/ArrayPrimitives/uninitializedFillN-0a.adoc[_» more&period;&period;&period;_]#

Fill an uninitialized array with copies of a value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TARGET&lowbar;TYPE&gt;
static
void
xref:BloombergLP/bslalg/ArrayPrimitives/uninitializedFillN-06.adoc[uninitializedFillN](
    TARGET&lowbar;TYPE* begin,
    xref:BloombergLP/bslalg/ArrayPrimitives/size_type.adoc[size&lowbar;type] numElements,
    TARGET&lowbar;TYPE const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator);
----

[.small]#xref:BloombergLP/bslalg/ArrayPrimitives/uninitializedFillN-06.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *begin*
| beginning of the uninitialized destination range
| *numElements*
| number of copies of `value` to construct
| *value*
| value copied into each constructed element
| *allocator*
| allocator used to supply memory if required
|===


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