BloombergLP::bdljsn::Json_Initializer::Json_Initializer

Create a Json_Initializer holding the specified boolean value.

Synopsis

Declared in <bdljsn_json.h>

template<class t_BOOL>
Json_Initializer(t_BOOL value)
requires bsl::is_same<t_BOOL, bool>::value;

Description

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.

Parameters

NameDescription
valueboolean value to store