tmp/tmpsh0y7rn6/{from.md → to.md}
RENAMED
|
@@ -11,40 +11,46 @@ type_index(const type_info& rhs) noexcept;
|
|
| 11 |
bool operator==(const type_index& rhs) const noexcept;
|
| 12 |
```
|
| 13 |
|
| 14 |
*Returns:* `*target == *rhs.target`.
|
| 15 |
|
| 16 |
-
``` cpp
|
| 17 |
-
bool operator!=(const type_index& rhs) const noexcept;
|
| 18 |
-
```
|
| 19 |
-
|
| 20 |
-
*Returns:* `*target != *rhs.target`.
|
| 21 |
-
|
| 22 |
``` cpp
|
| 23 |
bool operator<(const type_index& rhs) const noexcept;
|
| 24 |
```
|
| 25 |
|
| 26 |
*Returns:* `target->before(*rhs.target)`.
|
| 27 |
|
| 28 |
-
``` cpp
|
| 29 |
-
bool operator<=(const type_index& rhs) const noexcept;
|
| 30 |
-
```
|
| 31 |
-
|
| 32 |
-
*Returns:* `!rhs.target->before(*target)`.
|
| 33 |
-
|
| 34 |
``` cpp
|
| 35 |
bool operator>(const type_index& rhs) const noexcept;
|
| 36 |
```
|
| 37 |
|
| 38 |
*Returns:* `rhs.target->before(*target)`.
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
``` cpp
|
| 41 |
bool operator>=(const type_index& rhs) const noexcept;
|
| 42 |
```
|
| 43 |
|
| 44 |
*Returns:* `!target->before(*rhs.target)`.
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
``` cpp
|
| 47 |
size_t hash_code() const noexcept;
|
| 48 |
```
|
| 49 |
|
| 50 |
*Returns:* `target->hash_code()`.
|
|
|
|
| 11 |
bool operator==(const type_index& rhs) const noexcept;
|
| 12 |
```
|
| 13 |
|
| 14 |
*Returns:* `*target == *rhs.target`.
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
``` cpp
|
| 17 |
bool operator<(const type_index& rhs) const noexcept;
|
| 18 |
```
|
| 19 |
|
| 20 |
*Returns:* `target->before(*rhs.target)`.
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
``` cpp
|
| 23 |
bool operator>(const type_index& rhs) const noexcept;
|
| 24 |
```
|
| 25 |
|
| 26 |
*Returns:* `rhs.target->before(*target)`.
|
| 27 |
|
| 28 |
+
``` cpp
|
| 29 |
+
bool operator<=(const type_index& rhs) const noexcept;
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
*Returns:* `!rhs.target->before(*target)`.
|
| 33 |
+
|
| 34 |
``` cpp
|
| 35 |
bool operator>=(const type_index& rhs) const noexcept;
|
| 36 |
```
|
| 37 |
|
| 38 |
*Returns:* `!target->before(*rhs.target)`.
|
| 39 |
|
| 40 |
+
``` cpp
|
| 41 |
+
strong_ordering operator<=>(const type_index& rhs) const noexcept;
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
*Effects:* Equivalent to:
|
| 45 |
+
|
| 46 |
+
``` cpp
|
| 47 |
+
if (*target == *rhs.target) return strong_ordering::equal;
|
| 48 |
+
if (target->before(*rhs.target)) return strong_ordering::less;
|
| 49 |
+
return strong_ordering::greater;
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
``` cpp
|
| 53 |
size_t hash_code() const noexcept;
|
| 54 |
```
|
| 55 |
|
| 56 |
*Returns:* `target->hash_code()`.
|