[#BloombergLP-bdljsn-JsonArray-insert-0e4] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]::insert :relfileprefix: ../../../ :mrdocs: `insert` overloads == Synopses Declared in `<bdljsn_json.h>` Move‐insert `json` at the specified `position`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/JsonArray/Iterator-0d.adoc[JsonArray::Iterator] xref:BloombergLP/bdljsn/JsonArray/insert-0e2.adoc[insert]( xref:BloombergLP/bdljsn/JsonArray/ConstIterator.adoc[ConstIterator] position, xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<Json>] json); ---- [.small]#xref:BloombergLP/bdljsn/JsonArray/insert-0e2.adoc[_» more..._]# Insert a copy of `json` at the specified `position`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/JsonArray/Iterator-0d.adoc[JsonArray::Iterator] xref:BloombergLP/bdljsn/JsonArray/insert-0c.adoc[insert]( xref:BloombergLP/bdljsn/JsonArray/ConstIterator.adoc[ConstIterator] position, xref:BloombergLP/bdljsn/Json.adoc[Json] const& json); ---- [.small]#xref:BloombergLP/bdljsn/JsonArray/insert-0c.adoc[_» more..._]# Move‐insert `json` at the specified `index`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_INDEX> xref:BloombergLP/bdljsn/JsonArray/Iterator-0d.adoc[JsonArray::Iterator] xref:BloombergLP/bdljsn/JsonArray/insert-01.adoc[insert]( t_INDEX index, xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<Json>] json) requires bsl::is_integral<t_INDEX>::value && !bsl::is_same<t_INDEX, bool>::value; ---- [.small]#xref:BloombergLP/bdljsn/JsonArray/insert-01.adoc[_» more..._]# Insert a copy of `json` at the specified `index`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_INDEX> xref:BloombergLP/bdljsn/JsonArray/Iterator-0d.adoc[JsonArray::Iterator] xref:BloombergLP/bdljsn/JsonArray/insert-0a.adoc[insert]( t_INDEX index, xref:BloombergLP/bdljsn/Json.adoc[Json] const& json) requires bsl::is_integral<t_INDEX>::value && !bsl::is_same<t_INDEX, bool>::value; ---- [.small]#xref:BloombergLP/bdljsn/JsonArray/insert-0a.adoc[_» more..._]# Insert the range `[first, last)]` at the specified `position`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_INPUT_ITERATOR> xref:BloombergLP/bdljsn/JsonArray/Iterator-0d.adoc[JsonArray::Iterator] xref:BloombergLP/bdljsn/JsonArray/insert-0f.adoc[insert]( xref:BloombergLP/bdljsn/JsonArray/ConstIterator.adoc[ConstIterator] position, t_INPUT_ITERATOR first, t_INPUT_ITERATOR last); ---- [.small]#xref:BloombergLP/bdljsn/JsonArray/insert-0f.adoc[_» more..._]# Insert the range `[first, last)]` at the specified `index`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_INDEX, class t_INPUT_ITERATOR> xref:BloombergLP/bdljsn/JsonArray/Iterator-0d.adoc[JsonArray::Iterator] xref:BloombergLP/bdljsn/JsonArray/insert-09.adoc[insert]( t_INDEX index, t_INPUT_ITERATOR first, t_INPUT_ITERATOR last) requires bsl::is_integral<t_INDEX>::value && !bsl::is_same<t_INDEX, bool>::value; ---- [.small]#xref:BloombergLP/bdljsn/JsonArray/insert-09.adoc[_» more..._]# == Return Value an iterator referring to the newly inserted element == Parameters [cols="1,4"] |=== | Name| Description | *position* | insertion iterator | *json* | value to insert | *index* | insertion position | *first* | beginning of the source range | *last* | end of the source range |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#