Constructors

Synopses

Declared in <bdljsn_json.h>

Create an empty JsonArray.

Create a JsonArray by moving from the specified original.

Create an empty JsonArray using the specified basicAllocator.

explicit
JsonArray(bslma::Allocator* basicAllocator);

Create a JsonArray by moving from original using basicAllocator.

Create a JsonArray from the specified elements.

JsonArray(
    std::initializer_list<Json_Initializer> elements,
    bslma::Allocator* basicAllocator = 0);

Create a JsonArray having the same value as the specified original.

JsonArray(
    JsonArray const& original,
    bslma::Allocator* basicAllocator = 0);

Create a JsonArray from the range [first, last)].

template<class t_INPUT_ITERATOR>
JsonArray(
    t_INPUT_ITERATOR first,
    t_INPUT_ITERATOR last,
    bslma::Allocator* basicAllocator = 0);

Parameters

Name

Description

original

source array

basicAllocator

memory allocator; null uses the default

elements

initializer‐list of element values

first

beginning of the source range

last

end of the source range

Created with MrDocs