Move-append the specified string to this array.
Declared in <bdljsn_json.h>
template<class t_STRING_TYPE>
JsonArray&
pushBack(BloombergLP::bslmf::MovableRef_Deduced<t_STRING_TYPE> string)
requires bsl::is_same<t_STRING_TYPE,
bsl::string>::value;
Append to the end of this JsonArray an element having the value of the specified string by moving (in constant time) the contents of string to the new element and return a non-const reference to this array. string is left in a valid but unspecified state. This function does not participate in overload resolution unless the specified t_STRING_TYPE is bsl::string. The behavior is undefined unless string is valid UTF-8 (see bdlde::Utf8Util::isValid).
a reference providing modifiable access to this object
| Name | Description |
|---|---|
| string | string value to append |