boolean_category
Conversion category for booleans.
Synopsis
Defined in header <boost/json/conversion.hpp>.
using boolean_category = std::integral_constant< conversion_category, conversion_category::boolean >;
Description
Booleans are represented in JSON as true or false literals.
By default the type bool is considered a boolean.
Users can specialize conversion_category_of for their own types if they want them to be treated as booleans. For example:
namespace boost { namespace json {
template <>
struct conversion_category_of<your::boolean> : boolean_category
{ };
} }
Matching Types
bool.
Convenience header <boost/json.hpp>.