std::experimental::ranges:: Same
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
| Core language concepts | ||||||||||||||||||
|
||||||||||||||||||
| Object concepts | ||||||||||||||||||
| Comparison concepts | ||||||||||||||||||
| Callable concepts | ||||||||||||||||||
| URNG concept | ||||||||||||||||||
|
Definiert in Header
<experimental/ranges/concepts>
|
||
|
template
<
class
T,
class
U
>
concept bool Same = std:: is_same < T, U > :: value ; // siehe unten |
(ranges TS) | |
Das Konzept
Same<T, U>
ist genau dann erfüllt, wenn
T
und
U
denselben Typ bezeichnen.
Obwohl es unter Verwendung davon spezifiziert wird, muss keine Subsumptionsbeziehung zwischen Same < T, U > und std:: is_same < T, U > :: value bestehen.
Für die Zwecke der Constraint-Überprüfung impliziert Same < T, U > Same < U, T > .
Hinweise
Die zusätzliche Anforderung an die Constraint-Überprüfung unterscheidet
Same
von
std::is_same
.
Siehe auch
|
(C++11)
|
prüft, ob zwei Typen identisch sind
(Klassen-Template) |