Assignment operators
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. The value currently held by this variant is destroyed if that value's type is not the same as the type held by the rhs object.
Json&
operator=(Json const& rhs);
» more...
Same as the related overload above for operator=.
Json&
operator=(bdldfp::Decimal64 rhs);
» more...
Assign to this object a value of type bool initialized from the specified rhs, and return a reference providing modifiable access to this object. The value currently held by this object (if any) is destroyed if that value's type is not bool.
Json&
operator=(bool rhs);
» more...
Same as the related overload above for operator=.
Json&
operator=(double rhs);
» more...
Same as the related overload above for operator=.
Json&
operator=(float rhs);
» more...
Assign to this object a value of type JsonNumber initialized from the specified rhs, and return a reference providing modifiable access to this object. The value currently held by this object (if any) is destroyed if that value's type is not JsonNumber.
Json&
operator=(int rhs);
» more...
Same as the related overload above for operator=.
Json&
operator=(long rhs);
» more...
Same as the related overload above for operator=.
Json&
operator=(long long rhs);
» more...
Same as the related overload above for operator=.
Json&
operator=(unsigned int rhs);
» more...
Same as the related overload above for operator=.
Json&
operator=(unsigned long rhs);
» more...
Same as the related overload above for operator=.
Json&
operator=(unsigned long long 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 Json object if allocator() == rhs.allocator(); otherwise they are copied. rhs is left in a valid but unspecified state.
Json&
operator=(bslmf::MovableRef<Json> 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 Json object if allocator() == rhs.allocator(); otherwise, they are copied. rhs is left in a valid but unspecified state. The value currently held by this object (if any) is destroyed if that value's type is not JsonArray.
Json&
operator=(bslmf::MovableRef<JsonArray> rhs);
» more...
Assign to this object the singleton value of type JsonNull, and return a reference providing modifiable access to this object. rhs is left in a valid but unspecified state. The value currently held by this object (if any) is destroyed if that value's type is not JsonNull.
Json&
operator=(bslmf::MovableRef<JsonNull>);
» 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 Json object if allocator() == rhs.allocator(); otherwise, they are copied. rhs is left in a valid but unspecified state. The value currently held by this object (if any) is destroyed if that value's type is not JsonNumber.
Json&
operator=(bslmf::MovableRef<JsonNumber> 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 Json object if allocator() == rhs.allocator(); otherwise, they are copied. rhs is left in a valid but unspecified state. The value currently held by this object (if any) is destroyed if that value's type is not JsonObject.
Json&
operator=(bslmf::MovableRef<JsonObject> rhs);
» more...
Assign to this object a value of type JsonArray initialized from the specified rhs, and return a reference providing modifiable access to this object. The value currently held by this object (if any) is destroyed if that value's type is not JsonArray.
Json&
operator=(JsonArray const& rhs);
» more...
Assign to this object the singleton value of type JsonNull, and return a reference providing modifiable access to this object. The value currently held by this object (if any) is destroyed if that value's type is not JsonNull.
Json&
operator=(JsonNull const&);
» more...
Assign to this object a value of type JsonNumber initialized from the specified rhs, and return a reference providing modifiable access to this object. The value currently held by this object (if any) is destroyed if that value's type is not JsonNumber.
Json&
operator=(JsonNumber const& rhs);
» more...
Assign to this object a value of type JsonObject initialized from the specified rhs, and return a reference providing modifiable access to this object. The value currently held by this object (if any) is destroyed if that value's type is not JsonObject.
Json&
operator=(JsonObject const& rhs);
» more...
Same as the related overload above for operator=.
Json&
operator=(std::string_view const& rhs);
» more...
Assign to this object a value of type bsl::string initialized from the specified rhs, and return a reference providing modifiable access to this object. The value currently held by this object (if any) is destroyed if that value's type is not bsl::string. The behavior is undefined unless rhs is valid UTF-8 (see bdlde::Utf8Util::isValid).
Json&
operator=(char 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 Json object if allocator() == rhs.allocator(); otherwise, they are copied. rhs is left in a valid but unspecified state. The value currently held by this object (if any) is destroyed if that value's type is not bsl::string. This function does not participate in overload resolution unless the specified t_STRING_TYPE is bsl::string. The behavior is undefined unless rhs is valid UTF-8 (see bdlde::Utf8Util::isValid).
template<class t_STRING_TYPE>
Json&
operator=(BloombergLP::bslmf::MovableRef_Deduced<t_STRING_TYPE> rhs)
requires bsl::is_same<t_STRING_TYPE, bsl::string>::value;
» more...