insert overloads
Synopses
Declared in <bdljsn_json.h>
Move‐insert json at the specified position.
JsonArray::Iterator
insert(
ConstIterator position,
bslmf::MovableRef<Json> json);
Insert a copy of json at the specified position.
JsonArray::Iterator
insert(
ConstIterator position,
Json const& json);
Move‐insert json at the specified index.
template<class t_INDEX>
JsonArray::Iterator
insert(
t_INDEX index,
bslmf::MovableRef<Json> json)
requires bsl::is_integral<t_INDEX>::value
&& !bsl::is_same<t_INDEX, bool>::value;
Insert a copy of json at the specified index.
template<class t_INDEX>
JsonArray::Iterator
insert(
t_INDEX index,
Json const& json)
requires bsl::is_integral<t_INDEX>::value
&& !bsl::is_same<t_INDEX, bool>::value;
Insert the range [first, last)] at the specified position.
template<class t_INPUT_ITERATOR>
JsonArray::Iterator
insert(
ConstIterator position,
t_INPUT_ITERATOR first,
t_INPUT_ITERATOR last);
Insert the range [first, last)] at the specified index.
template<
class t_INDEX,
class t_INPUT_ITERATOR>
JsonArray::Iterator
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;
Return Value
an iterator referring to the newly inserted element
Parameters
Name |
Description |
position |
insertion iterator |
json |
value to insert |
index |
insertion position |
first |
beginning of the source range |
last |
end of the source range |
Created with MrDocs