pushBack overloads

Synopses

Declared in <bdljsn_json.h>

Same as the related overload above for pushBack.

Same as the related overload above for pushBack.

JsonArray&
pushBack(bool value);

Same as the related overload above for pushBack.

JsonArray&
pushBack(double value);

Same as the related overload above for pushBack.

JsonArray&
pushBack(float value);

Same as the related overload above for pushBack.

JsonArray&
pushBack(int value);

Same as the related overload above for pushBack.

JsonArray&
pushBack(long value);

Same as the related overload above for pushBack.

JsonArray&
pushBack(long long value);

Same as the related overload above for pushBack.

JsonArray&
pushBack(unsigned int value);

Same as the related overload above for pushBack.

JsonArray&
pushBack(unsigned long value);

Same as the related overload above for pushBack.

JsonArray&
pushBack(unsigned long long value);

Append to the end of this JsonArray the specified move‐insertable json/`array`/`object`/`number` and return a non‐`const` reference to this array. json/`array`/`object`/`number` is left in a valid but unspecified state. If an exception is thrown, *this is unaffected. Throw bsl::length_error if size() == maxSize().

Same as the related overload above for pushBack.

Same as the related overload above for pushBack.

Same as the overload taking a const JsonObject&.

Append to the end of this JsonArray a copy of the specified json/`array`/`object`/`number` and return a non‐`const` reference to this array. If an exception is thrown, *this is unaffected. Throw bsl::length_error if size() == maxSize().

JsonArray&
pushBack(Json const& json);

Same as the related overload above for pushBack.

JsonArray&
pushBack(JsonArray const& array);

Append to the end of this JsonArray a copy of the specified value and return a non‐`const` reference to this array. If an exception is thrown, *this is unaffected. Throw bsl::length_error if size() == maxSize().

JsonArray&
pushBack(JsonNull const& value);

Same as the related overload above for pushBack.

JsonArray&
pushBack(JsonNumber const& number);

Same as the related overload above for pushBack.

JsonArray&
pushBack(JsonObject const& object);

Same as the related overload above for pushBack.

JsonArray&
pushBack(std::string_view const& string);

Append to the end of this JsonArray a copy of the specified string and return a non‐`const` reference to this array. If an exception is thrown, *this is unaffected. Throw bsl::length_error if size() == maxSize().

JsonArray&
pushBack(char const* string);

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

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;

Created with MrDocs