tmp/tmpc5wbum0f/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Array comparisons <a id="depr.array.comp">[[depr.array.comp]]</a>
|
| 2 |
+
|
| 3 |
+
Equality and relational comparisons ([[expr.eq]], [[expr.rel]]) between
|
| 4 |
+
two operands of array type are deprecated.
|
| 5 |
+
|
| 6 |
+
[*Note 1*: Three-way comparisons [[expr.spaceship]] between such
|
| 7 |
+
operands are ill-formed. — *end note*]
|
| 8 |
+
|
| 9 |
+
[*Example 1*:
|
| 10 |
+
|
| 11 |
+
``` cpp
|
| 12 |
+
int arr1[5];
|
| 13 |
+
int arr2[5];
|
| 14 |
+
bool same = arr1 == arr2; // deprecated, same as &arr1[0] == &arr2[0],
|
| 15 |
+
// does not compare array contents
|
| 16 |
+
auto cmp = arr1 <=> arr2; // error
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
— *end example*]
|
| 20 |
+
|