BloombergLP::bdljsn::JsonObject::operator=

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.

JsonObject&
operator=(JsonObject const& rhs);
» more...

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 JsonObject if allocator() == rhs.allocator(); otherwise, all elements in this container are either destroyed or move-assigned to, and each additional element in rhs, if any, is move-inserted into this JsonObject. rhs is left in a valid but unspecified state.

JsonObject&
operator=(bslmf::MovableRef<JsonObject> rhs);
» more...

Assign to this JsonObject members created (in order) from the specified memberInitializers. List members having key values that were previously inserted into the this object are ignored. Previous members of this object, if any, are destroyed. The behavior is undefined unless the key of each member in members is valid UTF-8 (see bdlde::Utf8Util::isValid).

JsonObject&
operator=(std::initializer_list<JsonObject_MemberInitializer> memberInitializers);
» more...