tmp/tmpps0s05ts/{from.md → to.md}
RENAMED
|
@@ -1,47 +0,0 @@
|
|
| 1 |
-
### Operators <a id="operators">[[operators]]</a>
|
| 2 |
-
|
| 3 |
-
To avoid redundant definitions of `operator!=` out of `operator==` and
|
| 4 |
-
operators `>`, `<=`, and `>=` out of `operator<`, the library provides
|
| 5 |
-
the following:
|
| 6 |
-
|
| 7 |
-
``` cpp
|
| 8 |
-
template <class T> bool operator!=(const T& x, const T& y);
|
| 9 |
-
```
|
| 10 |
-
|
| 11 |
-
*Requires:* Type `T` is `EqualityComparable`
|
| 12 |
-
(Table [[tab:equalitycomparable]]).
|
| 13 |
-
|
| 14 |
-
*Returns:* `!(x == y)`.
|
| 15 |
-
|
| 16 |
-
``` cpp
|
| 17 |
-
template <class T> bool operator>(const T& x, const T& y);
|
| 18 |
-
```
|
| 19 |
-
|
| 20 |
-
*Requires:* Type `T` is `LessThanComparable`
|
| 21 |
-
(Table [[tab:lessthancomparable]]).
|
| 22 |
-
|
| 23 |
-
*Returns:* `y < x`.
|
| 24 |
-
|
| 25 |
-
``` cpp
|
| 26 |
-
template <class T> bool operator<=(const T& x, const T& y);
|
| 27 |
-
```
|
| 28 |
-
|
| 29 |
-
*Requires:* Type `T` is `LessThanComparable`
|
| 30 |
-
(Table [[tab:lessthancomparable]]).
|
| 31 |
-
|
| 32 |
-
*Returns:* `!(y < x)`.
|
| 33 |
-
|
| 34 |
-
``` cpp
|
| 35 |
-
template <class T> bool operator>=(const T& x, const T& y);
|
| 36 |
-
```
|
| 37 |
-
|
| 38 |
-
*Requires:* Type `T` is `LessThanComparable`
|
| 39 |
-
(Table [[tab:lessthancomparable]]).
|
| 40 |
-
|
| 41 |
-
*Returns:* `!(x < y)`.
|
| 42 |
-
|
| 43 |
-
In this library, whenever a declaration is provided for an `operator!=`,
|
| 44 |
-
`operator>`, `operator>=`, or `operator<=`, and requirements and
|
| 45 |
-
semantics are not explicitly provided, the requirements and semantics
|
| 46 |
-
are as specified in this Clause.
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|