From Jason Turner

[type.info]

Diff to HTML by rtfpessoa

tmp/tmpblnvcup0/{from.md → to.md} RENAMED
@@ -3,11 +3,11 @@
3
  ``` cpp
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
@@ -22,11 +22,11 @@ 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.
@@ -57,7 +57,7 @@ const char* name() const noexcept;
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
 
 
3
  ``` cpp
4
  namespace std {
5
  class type_info {
6
  public:
7
  virtual ~type_info();
8
+ constexpr 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
 
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
+ constexpr 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.
 
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