tmp/tmpj56tj3pg/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,25 @@
|
|
| 1 |
-
### Comparison
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
bool operator==(const error_code& lhs, const error_code& rhs) noexcept;
|
| 5 |
```
|
| 6 |
|
|
|
|
| 1 |
+
### Comparison functions <a id="syserr.compare">[[syserr.compare]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
bool operator<(const error_code& lhs, const error_code& rhs) noexcept;
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Returns:*
|
| 8 |
+
|
| 9 |
+
``` cpp
|
| 10 |
+
lhs.category() < rhs.category() ||
|
| 11 |
+
(lhs.category() == rhs.category() && lhs.value() < rhs.value());
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
``` cpp
|
| 15 |
+
bool operator<(const error_condition& lhs, const error_condition& rhs) noexcept;
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
*Returns:*
|
| 19 |
+
`lhs.category() < rhs.category() || lhs.category() == rhs.category() &&`
|
| 20 |
+
`lhs.value() < rhs.value()`.
|
| 21 |
|
| 22 |
``` cpp
|
| 23 |
bool operator==(const error_code& lhs, const error_code& rhs) noexcept;
|
| 24 |
```
|
| 25 |
|