conversion_category_of
Determines the category of conversion of a type.
Synopsis
Defined in header <boost/json/conversion.hpp>.
template<
class T>
struct conversion_category_of;
Description
Provides the member constant value that is equal to an enumerator of conversion_category that represents the suitable conversion category of T. The primary template attempts to deduce the category.
Users can specialize the trait for their own types if the deduction fails. For example:
namespace boost {
namespace json {
template <>
struct conversion_category<your::string> : string_category
{ };
} // namespace boost
} // namespace json
See Also
Convenience header <boost/json.hpp>.