Assignment operators

Synopses

Declared in <bdljsn_json.h>

Assign to this object the value of the specified rhs.

Json&
operator=(Json const& rhs);

Same as the related overload above for operator=.

Assign to this object a boolean initialized from rhs.

Json&
operator=(bool rhs);

Same as the related overload above for operator=.

Json&
operator=(double rhs);

Same as the related overload above for operator=.

Json&
operator=(float rhs);

Same as the related overload above for operator=.

Json&
operator=(int rhs);

Same as the related overload above for operator=.

Json&
operator=(long rhs);

Same as the related overload above for operator=.

Json&
operator=(long long rhs);

Same as the related overload above for operator=.

Json&
operator=(unsigned int rhs);

Same as the related overload above for operator=.

Json&
operator=(unsigned long rhs);

Same as the related overload above for operator=.

Json&
operator=(unsigned long long rhs);

Assign to this object by moving from the specified rhs.

Assign to this object by moving from the specified rhs array.

Assign to this object the JsonNull singleton value by move.

Assign to this object by moving from the specified rhs number.

Assign to this object by moving from the specified rhs object.

Assign to this object an array initialized from rhs.

Json&
operator=(JsonArray const& rhs);

Assign to this object the JsonNull singleton value.

Json&
operator=(JsonNull const& rhs);

Assign to this object a JsonNumber initialized from rhs.

Json&
operator=(JsonNumber const& rhs);

Assign to this object an object initialized from rhs.

Json&
operator=(JsonObject const& rhs);

Same as the related overload above for operator=.

Json&
operator=(std::string_view const& rhs);

Assign to this object a string initialized from rhs.

Json&
operator=(char const* rhs);

Assign to this object by moving from the specified rhs string.

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;

Return Value

a reference providing modifiable access to this object

Parameters

Name

Description

rhs

source value

Created with MrDocs