From Jason Turner

[bad.typeid]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmplio0d76v/{from.md → to.md} +3 -22
tmp/tmplio0d76v/{from.md → to.md} RENAMED
@@ -2,40 +2,21 @@
2
 
3
  ``` cpp
4
  namespace std {
5
  class bad_typeid : public exception {
6
  public:
7
- bad_typeid() noexcept;
8
- bad_typeid(const bad_typeid&) noexcept;
9
- bad_typeid& operator=(const bad_typeid&) noexcept;
10
  const char* what() const noexcept override;
11
  };
12
  }
13
  ```
14
 
15
  The class `bad_typeid` defines the type of objects thrown as exceptions
16
- by the implementation to report a null pointer in a `typeid`
17
- expression ([[expr.typeid]]).
18
-
19
- ``` cpp
20
- bad_typeid() noexcept;
21
- ```
22
-
23
- *Effects:* Constructs an object of class `bad_typeid`.
24
-
25
- ``` cpp
26
- bad_typeid(const bad_typeid&) noexcept;
27
- bad_typeid& operator=(const bad_typeid&) noexcept;
28
- ```
29
-
30
- *Effects:* Copies an object of class `bad_typeid`.
31
 
32
  ``` cpp
33
  const char* what() const noexcept override;
34
  ```
35
 
36
  *Returns:* An *implementation-defined* NTBS.
37
 
38
- *Remarks:* The message may be a null-terminated multibyte
39
- string ([[multibyte.strings]]), suitable for conversion and display as
40
- a `wstring` ([[string.classes]], [[locale.codecvt]])
41
-
 
2
 
3
  ``` cpp
4
  namespace std {
5
  class bad_typeid : public exception {
6
  public:
7
+ // see [exception] for the specification of the special member functions
 
 
8
  const char* what() const noexcept override;
9
  };
10
  }
11
  ```
12
 
13
  The class `bad_typeid` defines the type of objects thrown as exceptions
14
+ by the implementation to report a null pointer in a `typeid` expression
15
+ [[expr.typeid]].
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  ``` cpp
18
  const char* what() const noexcept override;
19
  ```
20
 
21
  *Returns:* An *implementation-defined* NTBS.
22