tmp/tmp6jgxnogo/{from.md → to.md}
RENAMED
|
@@ -2,41 +2,22 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
class bad_exception : public exception {
|
| 6 |
public:
|
| 7 |
-
|
| 8 |
-
bad_exception(const bad_exception&) noexcept;
|
| 9 |
-
bad_exception& operator=(const bad_exception&) noexcept;
|
| 10 |
const char* what() const noexcept override;
|
| 11 |
};
|
| 12 |
}
|
| 13 |
```
|
| 14 |
|
| 15 |
The class `bad_exception` defines the type of the object referenced by
|
| 16 |
-
the `exception_ptr` returned from a call to `current_exception`
|
| 17 |
-
[[propagation]]
|
| 18 |
copy.
|
| 19 |
|
| 20 |
-
``` cpp
|
| 21 |
-
bad_exception() noexcept;
|
| 22 |
-
```
|
| 23 |
-
|
| 24 |
-
*Effects:* Constructs an object of class `bad_exception`.
|
| 25 |
-
|
| 26 |
-
``` cpp
|
| 27 |
-
bad_exception(const bad_exception&) noexcept;
|
| 28 |
-
bad_exception& operator=(const bad_exception&) noexcept;
|
| 29 |
-
```
|
| 30 |
-
|
| 31 |
-
*Effects:* Copies an object of class `bad_exception`.
|
| 32 |
-
|
| 33 |
``` cpp
|
| 34 |
const char* what() const noexcept override;
|
| 35 |
```
|
| 36 |
|
| 37 |
*Returns:* An *implementation-defined* NTBS.
|
| 38 |
|
| 39 |
-
*Remarks:* The message may be a null-terminated multibyte
|
| 40 |
-
string ([[multibyte.strings]]), suitable for conversion and display as
|
| 41 |
-
a `wstring` ([[string.classes]], [[locale.codecvt]]).
|
| 42 |
-
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
class bad_exception : 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_exception` defines the type of the object referenced by
|
| 14 |
+
the `exception_ptr` returned from a call to `current_exception`
|
| 15 |
+
[[propagation]] when the currently active exception object fails to
|
| 16 |
copy.
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
``` cpp
|
| 19 |
const char* what() const noexcept override;
|
| 20 |
```
|
| 21 |
|
| 22 |
*Returns:* An *implementation-defined* NTBS.
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|