[#nlohmann-basic_json-0c-insert_iterator]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json]::insert&lowbar;iterator
:relfileprefix: ../../
:mrdocs:

helper for insertion of an iterator

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename&period;&period;&period; Args&gt;
xref:nlohmann/basic_json-0c/iterator.adoc[iterator]
insert&lowbar;iterator(
    xref:nlohmann/basic_json-0c/const_iterator.adoc[const&lowbar;iterator] pos,
    Args&&&period;&period;&period; args);
----

== Description

[NOTE]
====
&colon; This uses std&colon;&colon;distance to support GCC 4&period;8, see https&colon;&sol;&sol;github&period;com&sol;nlohmann&sol;json&sol;pull&sol;1257

====

== Return Value

iterator pointing to the first element inserted, or `pos` if no element was inserted

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pos*
| iterator before which the content will be inserted into the array
| *args*
| arguments forwarded to the underlying array&apos;s `insert()`
|===


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