Assign to this object a string initialized from rhs.

Synopsis

Declared in <bdljsn_json.h>

Json&
operator=(char const* rhs);

Description

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).

Return Value

a reference providing modifiable access to this object

Parameters

Name

Description

rhs

UTF‐8 string value

Created with MrDocs