tmp/tmp6ytfgoi9/{from.md → to.md}
RENAMED
|
@@ -4,41 +4,35 @@
|
|
| 4 |
namespace std {
|
| 5 |
class type_info {
|
| 6 |
public:
|
| 7 |
virtual ~type_info();
|
| 8 |
bool operator==(const type_info& rhs) const noexcept;
|
| 9 |
-
bool operator!=(const type_info& rhs) const noexcept;
|
| 10 |
bool before(const type_info& rhs) const noexcept;
|
| 11 |
size_t hash_code() const noexcept;
|
| 12 |
const char* name() const noexcept;
|
| 13 |
|
| 14 |
-
type_info(const type_info&
|
| 15 |
-
type_info& operator=(const type_info&
|
| 16 |
};
|
| 17 |
}
|
| 18 |
```
|
| 19 |
|
| 20 |
The class `type_info` describes type information generated by the
|
| 21 |
-
implementation. Objects of this class effectively store
|
| 22 |
-
name for the type, and an encoded value suitable for
|
| 23 |
-
for equality or collating order. The names, encoding
|
| 24 |
-
sequence for types are all unspecified and may
|
|
|
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
bool operator==(const type_info& rhs) const noexcept;
|
| 28 |
```
|
| 29 |
|
| 30 |
*Effects:* Compares the current object with `rhs`.
|
| 31 |
|
| 32 |
*Returns:* `true` if the two values describe the same type.
|
| 33 |
|
| 34 |
-
``` cpp
|
| 35 |
-
bool operator!=(const type_info& rhs) const noexcept;
|
| 36 |
-
```
|
| 37 |
-
|
| 38 |
-
*Returns:* `!(*this == rhs)`.
|
| 39 |
-
|
| 40 |
``` cpp
|
| 41 |
bool before(const type_info& rhs) const noexcept;
|
| 42 |
```
|
| 43 |
|
| 44 |
*Effects:* Compares the current object with `rhs`.
|
|
@@ -62,8 +56,8 @@ const char* name() const noexcept;
|
|
| 62 |
```
|
| 63 |
|
| 64 |
*Returns:* An *implementation-defined* NTBS.
|
| 65 |
|
| 66 |
*Remarks:* The message may be a null-terminated multibyte
|
| 67 |
-
string
|
| 68 |
-
|
| 69 |
|
|
|
|
| 4 |
namespace std {
|
| 5 |
class type_info {
|
| 6 |
public:
|
| 7 |
virtual ~type_info();
|
| 8 |
bool operator==(const type_info& rhs) const noexcept;
|
|
|
|
| 9 |
bool before(const type_info& rhs) const noexcept;
|
| 10 |
size_t hash_code() const noexcept;
|
| 11 |
const char* name() const noexcept;
|
| 12 |
|
| 13 |
+
type_info(const type_info&) = delete; // cannot be copied
|
| 14 |
+
type_info& operator=(const type_info&) = delete; // cannot be copied
|
| 15 |
};
|
| 16 |
}
|
| 17 |
```
|
| 18 |
|
| 19 |
The class `type_info` describes type information generated by the
|
| 20 |
+
implementation [[expr.typeid]]. Objects of this class effectively store
|
| 21 |
+
a pointer to a name for the type, and an encoded value suitable for
|
| 22 |
+
comparing two types for equality or collating order. The names, encoding
|
| 23 |
+
rule, and collating sequence for types are all unspecified and may
|
| 24 |
+
differ between programs.
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
bool operator==(const type_info& rhs) const noexcept;
|
| 28 |
```
|
| 29 |
|
| 30 |
*Effects:* Compares the current object with `rhs`.
|
| 31 |
|
| 32 |
*Returns:* `true` if the two values describe the same type.
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
``` cpp
|
| 35 |
bool before(const type_info& rhs) const noexcept;
|
| 36 |
```
|
| 37 |
|
| 38 |
*Effects:* Compares the current object with `rhs`.
|
|
|
|
| 56 |
```
|
| 57 |
|
| 58 |
*Returns:* An *implementation-defined* NTBS.
|
| 59 |
|
| 60 |
*Remarks:* The message may be a null-terminated multibyte
|
| 61 |
+
string [[multibyte.strings]], suitable for conversion and display as a
|
| 62 |
+
`wstring` ([[string.classes]], [[locale.codecvt]]).
|
| 63 |
|