BloombergLP::bdljsn::Json::makeArray

Replace this value with a JsonArray moved from array.

Synopsis

Declared in <bdljsn_json.h>

JsonArray&
makeArray(bslmf::MovableRef<JsonArray> array);

Description

Create an instance of type JsonArray in this object, using the allocator currently held by this object to supply memory, and return a reference providing modifiable access to the created instance. Initialize the JsonArray by moving from the specified array. This method first destroys the current value held by this object (even if the type currently held is JsonArray).

Return Value

a reference providing modifiable access to the held JsonArray

Parameters

NameDescription
arrayvalue used to initialize the created array