tmp/tmpkdpvdj2d/{from.md → to.md}
RENAMED
|
@@ -13,11 +13,12 @@ have the same address. This means that applications using custom
|
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
namespace std {
|
| 16 |
class error_category {
|
| 17 |
public:
|
| 18 |
-
|
|
|
|
| 19 |
error_category(const error_category&) = delete;
|
| 20 |
error_category& operator=(const error_category&) = delete;
|
| 21 |
virtual const char* name() const noexcept = 0;
|
| 22 |
virtual error_condition default_error_condition(int ev) const noexcept;
|
| 23 |
virtual bool equivalent(int code, const error_condition& condition) const noexcept;
|
|
@@ -35,10 +36,16 @@ namespace std {
|
|
| 35 |
} // namespace std
|
| 36 |
```
|
| 37 |
|
| 38 |
#### Class `error_category` virtual members <a id="syserr.errcat.virtuals">[[syserr.errcat.virtuals]]</a>
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
``` cpp
|
| 41 |
virtual const char* name() const noexcept = 0;
|
| 42 |
```
|
| 43 |
|
| 44 |
*Returns:* A string naming the error category.
|
|
@@ -67,10 +74,16 @@ virtual string message(int ev) const = 0;
|
|
| 67 |
|
| 68 |
*Returns:* A string that describes the error condition denoted by `ev`.
|
| 69 |
|
| 70 |
#### Class `error_category` non-virtual members <a id="syserr.errcat.nonvirtuals">[[syserr.errcat.nonvirtuals]]</a>
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
``` cpp
|
| 73 |
bool operator==(const error_category& rhs) const noexcept;
|
| 74 |
```
|
| 75 |
|
| 76 |
*Returns:* `this == &rhs`.
|
|
|
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
namespace std {
|
| 16 |
class error_category {
|
| 17 |
public:
|
| 18 |
+
constexpr error_category() noexcept;
|
| 19 |
+
virtual ~error_category();
|
| 20 |
error_category(const error_category&) = delete;
|
| 21 |
error_category& operator=(const error_category&) = delete;
|
| 22 |
virtual const char* name() const noexcept = 0;
|
| 23 |
virtual error_condition default_error_condition(int ev) const noexcept;
|
| 24 |
virtual bool equivalent(int code, const error_condition& condition) const noexcept;
|
|
|
|
| 36 |
} // namespace std
|
| 37 |
```
|
| 38 |
|
| 39 |
#### Class `error_category` virtual members <a id="syserr.errcat.virtuals">[[syserr.errcat.virtuals]]</a>
|
| 40 |
|
| 41 |
+
``` cpp
|
| 42 |
+
virtual ~error_category();
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
*Effects:* Destroys an object of class `error_category`.
|
| 46 |
+
|
| 47 |
``` cpp
|
| 48 |
virtual const char* name() const noexcept = 0;
|
| 49 |
```
|
| 50 |
|
| 51 |
*Returns:* A string naming the error category.
|
|
|
|
| 74 |
|
| 75 |
*Returns:* A string that describes the error condition denoted by `ev`.
|
| 76 |
|
| 77 |
#### Class `error_category` non-virtual members <a id="syserr.errcat.nonvirtuals">[[syserr.errcat.nonvirtuals]]</a>
|
| 78 |
|
| 79 |
+
``` cpp
|
| 80 |
+
constexpr error_category() noexcept;
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
*Effects:* Constructs an object of class `error_category`.
|
| 84 |
+
|
| 85 |
``` cpp
|
| 86 |
bool operator==(const error_category& rhs) const noexcept;
|
| 87 |
```
|
| 88 |
|
| 89 |
*Returns:* `this == &rhs`.
|