conversion_category

Conversion categories supported by the library.

Synopsis

Defined in header <boost/json/conversion.hpp>.

enum class conversion_category;

Values

Name Description

unknown

See unknown_category.

boolean

See boolean_category.

integer

See integer_category.

floating_point

See floating_point_category.

null

See null_category.

string

See string_category.

variant

See variant_category.

optional

See optional_category.

map

See map_category.

sequence

See sequence_category.

tuple

See tuple_category.

described_class

See described_class_category.

described_enum

See described_enum_category.

path

See path_category.

Description

With the exception of unknown every enumerator of this enum represents a conversion category supported by this library. These categories are used to pick appropriate implementations of value_to, try_value_to, value_from, parse_into, and serialize.

unknown category is assigned to types for which the library could not deduce an appropriate category. Using the aforementioned functions with objects of such types will result in compilation failure.

Convenience header <boost/json.hpp>.