std::experimental::ranges::ConvertibleTo

From cppreference.com
< cpp‎ | experimental‎ | ranges
 
 
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals 2 TS)
Extensions for parallelism (parallelism TS)
Extensions for concurrency (concurrency TS)
Concepts (concepts TS)
Ranges (ranges TS)
Special mathematical functions (special math TR)
 
 
Concepts library
Core language concepts
ConvertibleTo
                              
Object concepts
                              
                              
Comparison concepts
Callable concepts
                                        
                              
URNG concept
 
template < class T, class U >
concept bool ConvertibleTo() { return /* see below */; }
(ranges TS)

The concept ConvertibleTo<T, U>() is satisfied if and only if std::is_convertible<T, U>::value is true.

Notes

Despite the use of std::is_convertible in its description, ConvertibleTo is not required to use it in its implementation. Thus, ConvertibleTo<T, U>() may not normalize tostd::is_convertible<T, U>::value during partial ordering of constraints.

See also

checks if a type can be converted to the other type
(class template)