From Jason Turner

[concept.same]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp8f_q04uz/{from.md → to.md} +13 -0
tmp/tmp8f_q04uz/{from.md → to.md} RENAMED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Concept <a id="concept.same">[[concept.same]]</a>
2
+
3
+ ``` cpp
4
+ template<class T, class U>
5
+ concept same-as-impl = is_same_v<T, U>; // exposition only
6
+
7
+ template<class T, class U>
8
+ concept same_as = same-as-impl<T, U> && same-as-impl<U, T>;
9
+ ```
10
+
11
+ [*Note 1*: `same_as<T, U>` subsumes `same_as<U, T>` and vice
12
+ versa. — *end note*]
13
+