tmp/tmpz3_5_rhk/{from.md → to.md}
RENAMED
|
@@ -8,17 +8,17 @@ values to be incomparable.[^32]
|
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
namespace std {
|
| 11 |
class partial_ordering {
|
| 12 |
int value; // exposition only
|
| 13 |
-
bool
|
| 14 |
|
| 15 |
// exposition-only constructors
|
| 16 |
constexpr explicit
|
| 17 |
-
partial_ordering(ord v) noexcept : value(int(v)),
|
| 18 |
constexpr explicit
|
| 19 |
-
partial_ordering(ncmp v) noexcept : value(int(v)),
|
| 20 |
|
| 21 |
public:
|
| 22 |
// valid values
|
| 23 |
static const partial_ordering less;
|
| 24 |
static const partial_ordering equivalent;
|
|
@@ -54,20 +54,20 @@ constexpr bool operator< (partial_ordering v, unspecified) noexcept;
|
|
| 54 |
constexpr bool operator> (partial_ordering v, unspecified) noexcept;
|
| 55 |
constexpr bool operator<=(partial_ordering v, unspecified) noexcept;
|
| 56 |
constexpr bool operator>=(partial_ordering v, unspecified) noexcept;
|
| 57 |
```
|
| 58 |
|
| 59 |
-
*Returns:* For `operator`, `v.
|
| 60 |
|
| 61 |
``` cpp
|
| 62 |
constexpr bool operator< (unspecified, partial_ordering v) noexcept;
|
| 63 |
constexpr bool operator> (unspecified, partial_ordering v) noexcept;
|
| 64 |
constexpr bool operator<=(unspecified, partial_ordering v) noexcept;
|
| 65 |
constexpr bool operator>=(unspecified, partial_ordering v) noexcept;
|
| 66 |
```
|
| 67 |
|
| 68 |
-
*Returns:* For `operator`, `v.
|
| 69 |
|
| 70 |
``` cpp
|
| 71 |
constexpr partial_ordering operator<=>(partial_ordering v, unspecified) noexcept;
|
| 72 |
```
|
| 73 |
|
|
|
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
namespace std {
|
| 11 |
class partial_ordering {
|
| 12 |
int value; // exposition only
|
| 13 |
+
bool is-ordered; // exposition only
|
| 14 |
|
| 15 |
// exposition-only constructors
|
| 16 |
constexpr explicit
|
| 17 |
+
partial_ordering(ord v) noexcept : value(int(v)), is-ordered(true) {} // exposition only
|
| 18 |
constexpr explicit
|
| 19 |
+
partial_ordering(ncmp v) noexcept : value(int(v)), is-ordered(false) {} // exposition only
|
| 20 |
|
| 21 |
public:
|
| 22 |
// valid values
|
| 23 |
static const partial_ordering less;
|
| 24 |
static const partial_ordering equivalent;
|
|
|
|
| 54 |
constexpr bool operator> (partial_ordering v, unspecified) noexcept;
|
| 55 |
constexpr bool operator<=(partial_ordering v, unspecified) noexcept;
|
| 56 |
constexpr bool operator>=(partial_ordering v, unspecified) noexcept;
|
| 57 |
```
|
| 58 |
|
| 59 |
+
*Returns:* For `operator`, `v.`*`is-ordered`*` && v.`*`value`*` 0`.
|
| 60 |
|
| 61 |
``` cpp
|
| 62 |
constexpr bool operator< (unspecified, partial_ordering v) noexcept;
|
| 63 |
constexpr bool operator> (unspecified, partial_ordering v) noexcept;
|
| 64 |
constexpr bool operator<=(unspecified, partial_ordering v) noexcept;
|
| 65 |
constexpr bool operator>=(unspecified, partial_ordering v) noexcept;
|
| 66 |
```
|
| 67 |
|
| 68 |
+
*Returns:* For `operator`, `v.`*`is-ordered`*` && 0 v.`*`value`*.
|
| 69 |
|
| 70 |
``` cpp
|
| 71 |
constexpr partial_ordering operator<=>(partial_ordering v, unspecified) noexcept;
|
| 72 |
```
|
| 73 |
|