tmp/tmpw2oo47vy/{from.md → to.md}
RENAMED
|
@@ -2,26 +2,26 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
class domain_error : public logic_error {
|
| 6 |
public:
|
| 7 |
-
explicit domain_error(const string& what_arg);
|
| 8 |
-
explicit domain_error(const char* what_arg);
|
| 9 |
};
|
| 10 |
}
|
| 11 |
```
|
| 12 |
|
| 13 |
The class `domain_error` defines the type of objects thrown as
|
| 14 |
exceptions by the implementation to report domain errors.
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
-
domain_error(const string& what_arg);
|
| 18 |
```
|
| 19 |
|
| 20 |
*Ensures:* `strcmp(what(), what_arg.c_str()) == 0`.
|
| 21 |
|
| 22 |
``` cpp
|
| 23 |
-
domain_error(const char* what_arg);
|
| 24 |
```
|
| 25 |
|
| 26 |
*Ensures:* `strcmp(what(), what_arg) == 0`.
|
| 27 |
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
class domain_error : public logic_error {
|
| 6 |
public:
|
| 7 |
+
constexpr explicit domain_error(const string& what_arg);
|
| 8 |
+
constexpr explicit domain_error(const char* what_arg);
|
| 9 |
};
|
| 10 |
}
|
| 11 |
```
|
| 12 |
|
| 13 |
The class `domain_error` defines the type of objects thrown as
|
| 14 |
exceptions by the implementation to report domain errors.
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
+
constexpr domain_error(const string& what_arg);
|
| 18 |
```
|
| 19 |
|
| 20 |
*Ensures:* `strcmp(what(), what_arg.c_str()) == 0`.
|
| 21 |
|
| 22 |
``` cpp
|
| 23 |
+
constexpr domain_error(const char* what_arg);
|
| 24 |
```
|
| 25 |
|
| 26 |
*Ensures:* `strcmp(what(), what_arg) == 0`.
|
| 27 |
|