Files
cppdraft_translate/cppdraft/cmp/result.md
2025-10-25 03:02:53 +03:00

1.1 KiB

[cmp.result]

17 Language support library [support]

17.12 Comparisons [cmp]

17.12.5 Result of three-way comparison [cmp.result]

1

#

The behavior of a program that adds specializations for the compare_three_way_result template defined in this subclause is undefined.

2

#

For the compare_three_way_result type trait applied to the types T and U, let t and u denote lvalues of typesconst remove_reference_t and const remove_reference_t, respectively.

If the expression t <=> u is well-formed when treated as an unevaluated operand ([expr.context]), the member typedef-name type denotes the type decltype(t <=> u).

Otherwise, there is no member type.