tmp/tmp8jnszh52/{from.md → to.md}
RENAMED
|
@@ -5,17 +5,17 @@ declared return type `bool`.
|
|
| 5 |
|
| 6 |
A defaulted `==` operator function for a class `C` is defined as deleted
|
| 7 |
unless, for each `xᵢ` in the expanded list of subobjects for an object
|
| 8 |
`x` of type `C`, `xᵢ`` == ``xᵢ` is usable [[class.compare.default]].
|
| 9 |
|
| 10 |
-
The return value
|
| 11 |
-
|
| 12 |
-
`
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
|
| 18 |
[*Example 1*:
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
struct D {
|
|
|
|
| 5 |
|
| 6 |
A defaulted `==` operator function for a class `C` is defined as deleted
|
| 7 |
unless, for each `xᵢ` in the expanded list of subobjects for an object
|
| 8 |
`x` of type `C`, `xᵢ`` == ``xᵢ` is usable [[class.compare.default]].
|
| 9 |
|
| 10 |
+
The return value of a defaulted `==` operator function with parameters
|
| 11 |
+
`x` and `y` is determined by comparing corresponding elements `xᵢ` and
|
| 12 |
+
`yᵢ` in the expanded lists of subobjects for `x` and `y` (in increasing
|
| 13 |
+
index order) until the first index i where `xᵢ`` == ``yᵢ` yields a
|
| 14 |
+
result value which, when contextually converted to `bool`, yields
|
| 15 |
+
`false`. The return value is `false` if such an index exists and `true`
|
| 16 |
+
otherwise.
|
| 17 |
|
| 18 |
[*Example 1*:
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
struct D {
|