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