tuple_category
Conversion category for tuples.
Synopsis
Defined in header <boost/json/conversion.hpp>.
using tuple_category = std::integral_constant< conversion_category, conversion_category::tuple >;
Description
Tuples are represented in JSON as arrays.
By default a type T is considered a tuple if std::tuple_size<T>::value is a positive number.
Users can specialize conversion_category_of for their own types if they want them to be treated like tuples. For example:
namespace boost { namespace json {
template <>
struct conversion_category_of<your::tuple> : tuple_category
{ };
} }
Matching Types
Convenience header <boost/json.hpp>.