Create a JsonArray from the specified elements.
Synopsis
Declared in <bdljsn_json.h>
JsonArray(
std::initializer_list<Json_Initializer> elements,
bslma::Allocator* basicAllocator = 0);
Description
Create a JsonArray having a Json object for each element (in order) of the specified elements. Optionally specify a basicAllocator used to supply memory. If basicAllocator is not specified, the currently installed default allocator is used.
Parameters
Name |
Description |
elements |
initializer‐list of element values |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs