Insert a copy of json at position in the held array.
Synopsis
Declared in <bdljsn_json.h>
JsonArray::Iterator
insert(
JsonArray::ConstIterator position,
Json const& json);
Description
Insert into the JsonArray held by this object at the specified position a copy of the specified json, and return an iterator referring to the newly inserted element. If an exception is thrown, *this is unaffected. Throw bsl::length_error if size() == maxSize(). The behavior is undefined unless isArray() and position is in the range [theArray().begin() .. theArray().end()].
Return Value
an iterator referring to the newly inserted element
Parameters
Name |
Description |
position |
insertion iterator |
json |
value to insert |
Created with MrDocs