|
6503 | 6503 | is usable\iref{class.compare.default}.
|
6504 | 6504 |
|
6505 | 6505 | \pnum
|
6506 |
| -The return value \tcode{V} of a defaulted \tcode{==} operator function |
| 6506 | +The return value of a defaulted \tcode{==} operator function |
6507 | 6507 | with parameters \tcode{x} and \tcode{y} is determined
|
6508 | 6508 | by comparing corresponding elements $\tcode{x}_i$ and $\tcode{y}_i$
|
6509 | 6509 | in the expanded lists of subobjects for \tcode{x} and \tcode{y}
|
6510 | 6510 | (in increasing index order)
|
6511 | 6511 | until the first index $i$
|
6512 | 6512 | where $\tcode{x}_i\tcode{ == }\tcode{y}_i$ yields a result value which,
|
6513 | 6513 | when contextually converted to \tcode{bool}, yields \tcode{false}.
|
6514 |
| -If no such index exists, \tcode{V} is \tcode{true}. |
6515 |
| -Otherwise, \tcode{V} is \tcode{false}. |
| 6514 | +The return value is \tcode{true} if such an index exists |
| 6515 | +and \tcode{false} otherwise. |
6516 | 6516 |
|
6517 | 6517 | \pnum
|
6518 | 6518 | \begin{example}
|
|
6611 | 6611 | \end{itemize}
|
6612 | 6612 |
|
6613 | 6613 | \pnum
|
6614 |
| -The return value \tcode{V} of type \tcode{R} |
| 6614 | +The return value of type \tcode{R} |
6615 | 6615 | of the defaulted three-way comparison operator function
|
6616 | 6616 | with parameters \tcode{x} and \tcode{y} of the same type
|
6617 | 6617 | is determined by comparing corresponding elements
|
|
6622 | 6622 | the synthesized three-way comparison of type \tcode{R}
|
6623 | 6623 | between $\tcode{x}_i$ and $\tcode{y}_i$
|
6624 | 6624 | yields a result value $\tcode{v}_i$ where $\tcode{v}_i \mathrel{\tcode{!=}} 0$,
|
6625 |
| -contextually converted to \tcode{bool}, yields \tcode{true}; |
6626 |
| -\tcode{V} is a copy of $\tcode{v}_i$. |
6627 |
| -If no such index exists, \tcode{V} is |
6628 |
| -\tcode{static_cast<R>(std::strong_ordering::equal)}. |
| 6625 | +contextually converted to \tcode{bool}, yields \tcode{true}. |
| 6626 | +The return value is a copy of $\tcode{v}_i$ |
| 6627 | +if such an index exists and |
| 6628 | +\tcode{static_cast<R>(std::strong_ordering::equal)} otherwise. |
6629 | 6629 |
|
6630 | 6630 | \pnum
|
6631 | 6631 | The \defn{common comparison type} \tcode{U}
|
|
0 commit comments