integer_category
Conversion category for integers.
Synopsis
Defined in header <boost/json/conversion.hpp>.
using integer_category = std::integral_constant< conversion_category, conversion_category::integer >;
Description
Integers are represented in JSON as numbers.
By default a type T is considered an integer if std::is_integral<T>::value is true.
Users can specialize conversion_category_of for their own types if they want them to be treated as integers. For example:
namespace boost { namespace json {
template <>
struct conversion_category_of<your::integer> : integer_category
{ };
} }
Matching Types
Convenience header <boost/json.hpp>.