From Jason Turner

[cmp.common]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpb2rrvby2/{from.md → to.md} +25 -0
tmp/tmpb2rrvby2/{from.md → to.md} RENAMED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Class template `common_comparison_category` <a id="cmp.common">[[cmp.common]]</a>
2
+
3
+ The type `common_comparison_category` provides an alias for the
4
+ strongest comparison category to which all of the template arguments can
5
+ be converted.
6
+
7
+ [*Note 1*: A comparison category type is stronger than another if they
8
+ are distinct types and an instance of the former can be converted to an
9
+ instance of the latter. — *end note*]
10
+
11
+ ``` cpp
12
+ template<class... Ts>
13
+ struct common_comparison_category {
14
+ using type = see below;
15
+ };
16
+ ```
17
+
18
+ *Remarks:* The member *typedef-name* `type` denotes the common
19
+ comparison type [[class.spaceship]] of `Ts...`, the expanded parameter
20
+ pack, or `void` if any element of `Ts` is not a comparison category
21
+ type.
22
+
23
+ [*Note 1*: This is `std::strong_ordering` if the expansion is
24
+ empty. — *end note*]
25
+