std::experimental::ranges::Same

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
Callable concepts
                                        
                              
URNG concept
 
template < class T, class U >
concept bool Same() { return /* see below */; }
(ranges TS)

The concept Same<T, U>() is satisfied if and only if T and U denote the same type.

For the purposes of constraint checking, Same<T, U>() implies Same<U, T>().

Notes

The additional requirement on constraint checking differentiates Same from std::is_same, and will typically require a compiler intrinsic to implement.

See also

(C++11)
checks if two types are the same
(class template)