BloombergLP::bdljsn::JsonArray::pushBack

Move-append the specified object to this array.

Synopsis

Declared in <bdljsn_json.h>

JsonArray&
pushBack(bslmf::MovableRef<JsonObject> object);

Description

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

Return Value

non-const reference to this array

Parameters

NameDescription
objectvalue to append