Assign to this object by moving from the specified rhs.
Synopsis
Declared in <bdljsn_json.h>
JsonArray&
operator=(bslmf::MovableRef<JsonArray> rhs);
Description
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.
Return Value
a reference providing modifiable access to this object
Parameters
Name |
Description |
rhs |
source array |
Created with MrDocs