BloombergLP::bdljsn::JsonArray::operator=

Assign to this array from the specified elements.

Synopsis

Declared in <bdljsn_json.h>

JsonArray&
operator=(std::initializer_list<Json_Initializer> elements);

Description

Assign to this array a sequence of Json objects, one for each element (in order) of the specified elements. Previous elements of this array, if any, are destroyed. Return a reference to *this. If an exception is thrown, *this is left in a valid but unspecified state.

Return Value

a reference providing modifiable access to this object

Parameters

NameDescription
elementsinitializer-list of element values