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

Assign to this array a sequence of `Json` objects, one for each element (in order) of the specified `elements`&period; Previous elements of this array, if any, are destroyed&period; Return a reference to `&ast;this`&period; If an exception is thrown, `&ast;this` is left in a valid but unspecified state&period;

== Synopsis

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

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


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