std::experimental::ranges::EqualityComparable

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

concept bool EqualityComparable() {
    return WeaklyEqualityComparable<T, T>();

}
(1) (ranges TS)
template <class T, class U>

concept bool EqualityComparable() {
    return ranges::CommonReference<const T&, const U&>() &&
           ranges::EqualityComparable<T>() &&
           ranges::EqualityComparable<U>() &&
           ranges::EqualityComparable<
                 std::remove_cv_t<std::remove_reference_t<
                     std::common_reference_t<const T&, const U&>>>>() &&
           ranges::WeaklyEqualityComparable<T, U>();

}
(2) (ranges TS)