Namespaces
Variants
Views
Actions

std::experimental::ranges::Common

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
Common
                              
Object concepts
                              
                              
Comparison concepts
Callable concepts
                                        
                              
URNG concept
 
template <class T, class U>

concept bool Common() {
    return ranges::CommonReference<const T&, const U&>()
        && requires(T (&t)(), U (&u)()) {
               typename std::common_type_t<T, U>;
               typename std::common_type_t<U, T>;
               requires ranges::Same<std::common_type_t<U, T>, std::common_type_t<T, U>>();
               std::common_type_t<T, U>(t());
               std::common_type_t<T, U>(u());
               requires ranges::CommonReference<
                   std::add_lvalue_reference_t<std::common_type_t<T, U>>,
                   std::common_reference_t<std::add_lvalue_reference_t<const T>,
                                           std::add_lvalue_reference_t<const U>>>();
           };

}
(ranges TS)