std::experimental::ranges::ConvertibleTo

Header: <experimental/ranges/concepts>

The concept ConvertibleTo<From, To> specifies that an expression of the type and value category specified by From can be implicitly and explicitly converted to the type To, and the two forms of conversion are equivalent.

# Declarations

template< class From, class To >
concept bool ConvertibleTo =
std::is_convertible<From, To>::value &&
requires(From (&f)()) {
static_cast<To>(f());
};

(ranges TS)

# See also