BloombergLP::bdljsn::Json_Initializer::Json_Initializer

Constructors

Synopses

Declared in <bdljsn_json.h>

Create a Json_Initializer object containing a JsonNull in the internal variant.

Json_Initializer();
» more...

Create a Json_Initializer object containing the specified value.

Json_Initializer(bdldfp::Decimal64 value);
» more...

Create a Json_Initializer object containing the specified value.

Json_Initializer(double value);
» more...

Create a Json_Initializer object containing the specified value.

Json_Initializer(float value);
» more...

Create a Json_Initializer object containing an initializer list with the value of the specified il.

Json_Initializer(std::initializer_list<Json_Initializer> il);
» more...

Create a Json_Initializer object containing a pointer to the specified json.

Json_Initializer(Json const& json);
» more...

Create a Json_Initializer object containing a pointer to the specified jArr.

Json_Initializer(JsonArray const& jArr);
» more...

Same as the related overload above for Json_Initializer.

Json_Initializer(JsonNull const&);
» more...

Create a Json_Initializer object containing a pointer to the specified jNum.

Json_Initializer(JsonNumber const& jNum);
» more...

Create a Json_Initializer object containing a pointer to the specified jObj.

Json_Initializer(JsonObject const& jObj);
» more...

Create a Json_Initializer object containing a string_view referring to the contents of the specified string.

Json_Initializer(bsl::string const& string);
» more...

Create a Json_Initializer object containing a string_view referring to the contents of the specified string.

Json_Initializer(std::pmr::string const& string);
» more...

Same as the related overload above for Json_Initializer.

Json_Initializer(std::string const& string);
» more...

Create a Json_Initializer object containing a string_view containing the specified sv.

Json_Initializer(std::string_view const& sv);
» more...

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);
» more...

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;
» more...

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;
» more...