[#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 `<bdljsn_json.h>` Assign to this array from the specified `elements`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]& xref:BloombergLP/bdljsn/JsonArray/assign-01.adoc[assign](std::initializer_list<Json_Initializer> elements); ---- [.small]#xref:BloombergLP/bdljsn/JsonArray/assign-01.adoc[_» more..._]# Assign to this array the values in the range `[first, last)]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_INPUT_ITERATOR> xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]& xref:BloombergLP/bdljsn/JsonArray/assign-03.adoc[assign]( t_INPUT_ITERATOR first, t_INPUT_ITERATOR last); ---- [.small]#xref:BloombergLP/bdljsn/JsonArray/assign-03.adoc[_» more..._]# == Return Value * reference to `*this` * non‐`const` reference to this array == Parameters [cols="1,4"] |=== | Name| Description | *elements* | initializer‐list of element values | *first* | beginning of the source range | *last* | end of the source range |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#