[#nlohmann-basic_json-0c-insert-06] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic_json]::insert :relfileprefix: ../../ :mrdocs: inserts range of elements into array == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/basic_json-0c/iterator.adoc[iterator] insert( xref:nlohmann/basic_json-0c/const_iterator.adoc[const_iterator] pos, xref:nlohmann/basic_json-0c/const_iterator.adoc[const_iterator] first, xref:nlohmann/basic_json-0c/const_iterator.adoc[const_iterator] last); ---- == Return Value iterator pointing to the first element inserted, or _pos_ if `first == last` == Parameters [cols="1,4"] |=== | Name| Description | *pos* | iterator before which the range will be inserted | *first* | iterator to the first element of the range to insert | *last* | iterator past the last element of the range to insert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#