is_tuple_like
Determine if T can be treated like a tuple during conversions.
Synopsis
Defined in header <boost/json/conversion.hpp>.
template<
class T>
struct is_tuple_like;
Description
Provides the member constant value that is equal to true, if std::tuple_size<T>::value is a positive number. Otherwise, value is equal to false.
Users can specialize the trait for their own types if they don’t want them to be treated like tuples. For example:
namespace boost {
namespace json {
template <>
struct is_tuple_like<your::tuple> : std::false_type
{ };
} // namespace boost
} // namespace json
Types satisfying the trait
See Also
Convenience header <boost/json.hpp>.