Create a Json object from the specified initializer.
Synopsis
Declared in <bdljsn_json.h>
template<class t_JSON_INITIALIZER>
Json(
t_JSON_INITIALIZER const& initializer,
bslma::Allocator* basicAllocator = 0)
requires bsl::is_same<t_JSON_INITIALIZER,
Json_Initializer>::value;
Description
Create a Json object having the same structure as the specified initializer. Optionally specify the basicAllocator used to supply memory. If basicAllocator is not specified, the currently installed default allocator is used to supply memory.
Parameters
Name |
Description |
initializer |
list‐initialization value |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs