Constructors
Synopses
Declared in <bdljsn_json.h>
Create a Json_Initializer object containing a JsonNull in the internal variant.
Create a Json_Initializer object containing the specified value.
Create a Json_Initializer object containing the specified value.
Json_Initializer(double value);
Create a Json_Initializer object containing the specified value.
Json_Initializer(float value);
Create a Json_Initializer object containing an initializer list with the value of the specified il.
Json_Initializer(std::initializer_list<Json_Initializer> il);
Create a Json_Initializer object containing a pointer to the specified json.
Json_Initializer(Json const& json);
Create a Json_Initializer object containing a pointer to the specified jArr.
Json_Initializer(JsonArray const& jArr);
Same as the related overload above for Json_Initializer.
Json_Initializer(JsonNull const&);
Create a Json_Initializer object containing a pointer to the specified jNum.
Json_Initializer(JsonNumber const& jNum);
Create a Json_Initializer object containing a pointer to the specified jObj.
Json_Initializer(JsonObject const& jObj);
Create a Json_Initializer object containing a string_view referring to the contents of the specified string.
Json_Initializer(bsl::string const& string);
Create a Json_Initializer object containing a string_view referring to the contents of the specified string.
Json_Initializer(std::pmr::string const& string);
Same as the related overload above for Json_Initializer.
Json_Initializer(std::string const& string);
Create a Json_Initializer object containing a string_view containing the specified sv.
Json_Initializer(std::string_view const& sv);
Create a Json_Initializer object containing a string_view referring to the null‐terminated sequence pointed to by the specified string.
Json_Initializer(char const* string);
Create a Json_Initializer object containing the boolean value of the specified value in the internal variant. Note that (template parameter) t_BOOL must be bool; types that convert to bool (e.g., pointers) are disallowed.
template<class t_BOOL>
Json_Initializer(
t_BOOL value,
bool* = 0)
requires bsl::is_same<t_BOOL, bool>::value;
Create a Json_Initializer object containing the value of the specified value in the internal variant. If value is a signed integral type, then the value is stored as a long long. If value is an unsigned integral type, then the value is stored as an unsigned long long.
template<class t_INTEGRAL>
Json_Initializer(
t_INTEGRAL value,
int* = 0)
requires bsl::is_integral<t_INTEGRAL> ::value
&& !bsl::is_same<t_INTEGRAL, bool>::value;
Created with MrDocs