Assignment operators
Synopses
Declared in <bdljsn_json.h>
Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object. If an exception is thrown, *this is left in a valid but unspecified state.
JsonArray&
operator=(JsonArray const& rhs);
Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object. The contents of rhs are moved (in constant time) to this JsonArray if allocator() == rhs.allocator(); otherwise, all elements in this JsonArray are either destroyed or move‐assigned to and each additional element in rhs is move‐inserted into this JsonArray. rhs is left in a valid but unspecified state.
Assign to this array a sequence of Json objects, one for each element (in order) of the specified elements. Previous elements of this array, if any, are destroyed. Return a reference to *this. If an exception is thrown, *this is left in a valid but unspecified state.
JsonArray&
operator=(std::initializer_list<Json_Initializer> elements);
Created with MrDocs