[#BloombergLP-bdljsn-JsonArray-assign-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]::assign
:relfileprefix: ../../../
:mrdocs:

`assign` overloads

== Synopses

Declared in `&lt;bdljsn&lowbar;json&period;h&gt;`

Assign to this array from the specified `elements`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]&
xref:BloombergLP/bdljsn/JsonArray/assign-01.adoc[assign](std::initializer&lowbar;list&lt;Json&lowbar;Initializer&gt; elements);
----

[.small]#xref:BloombergLP/bdljsn/JsonArray/assign-01.adoc[_» more&period;&period;&period;_]#

Assign to this array the values in the range `&lsqb;first, last)&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;INPUT&lowbar;ITERATOR&gt;
xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]&
xref:BloombergLP/bdljsn/JsonArray/assign-03.adoc[assign](
    t&lowbar;INPUT&lowbar;ITERATOR first,
    t&lowbar;INPUT&lowbar;ITERATOR last);
----

[.small]#xref:BloombergLP/bdljsn/JsonArray/assign-03.adoc[_» more&period;&period;&period;_]#

== Return Value

* reference to `&ast;this`
* non&hyphen;`const` reference to this array

== Parameters

[cols="1,4"]
|===
| Name| Description
| *elements*
| initializer&hyphen;list of element values
| *first*
| beginning of the source range
| *last*
| end of the source range
|===


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