tmp/tmp9xvlvsdw/{from.md → to.md}
RENAMED
|
@@ -1,39 +1,38 @@
|
|
| 1 |
#### Class `error_condition` overview <a id="syserr.errcondition.overview">[[syserr.errcondition.overview]]</a>
|
| 2 |
|
| 3 |
The class `error_condition` describes an object used to hold values
|
| 4 |
-
identifying error conditions.
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
|
| 8 |
``` cpp
|
| 9 |
namespace std {
|
| 10 |
class error_condition {
|
| 11 |
public:
|
| 12 |
-
// [syserr.errcondition.constructors] constructors
|
| 13 |
error_condition() noexcept;
|
| 14 |
error_condition(int val, const error_category& cat) noexcept;
|
| 15 |
template <class ErrorConditionEnum>
|
| 16 |
error_condition(ErrorConditionEnum e) noexcept;
|
| 17 |
|
| 18 |
-
// [syserr.errcondition.modifiers] modifiers
|
| 19 |
void assign(int val, const error_category& cat) noexcept;
|
| 20 |
template <class ErrorConditionEnum>
|
| 21 |
error_condition& operator=(ErrorConditionEnum e) noexcept;
|
| 22 |
void clear() noexcept;
|
| 23 |
|
| 24 |
-
// [syserr.errcondition.observers] observers
|
| 25 |
int value() const noexcept;
|
| 26 |
const error_category& category() const noexcept;
|
| 27 |
string message() const;
|
| 28 |
explicit operator bool() const noexcept;
|
| 29 |
|
| 30 |
private:
|
| 31 |
int val_; // exposition only
|
| 32 |
const error_category* cat_; // exposition only
|
| 33 |
};
|
| 34 |
-
|
| 35 |
-
// [syserr.errcondition.nonmembers] non-member functions:
|
| 36 |
-
bool operator<(const error_condition& lhs, const error_condition& rhs) noexcept;
|
| 37 |
-
} // namespace std
|
| 38 |
```
|
| 39 |
|
|
|
|
| 1 |
#### Class `error_condition` overview <a id="syserr.errcondition.overview">[[syserr.errcondition.overview]]</a>
|
| 2 |
|
| 3 |
The class `error_condition` describes an object used to hold values
|
| 4 |
+
identifying error conditions.
|
| 5 |
+
|
| 6 |
+
[*Note 1*: `error_condition` values are portable abstractions, while
|
| 7 |
+
`error_code` values ([[syserr.errcode]]) are implementation
|
| 8 |
+
specific. — *end note*]
|
| 9 |
|
| 10 |
``` cpp
|
| 11 |
namespace std {
|
| 12 |
class error_condition {
|
| 13 |
public:
|
| 14 |
+
// [syserr.errcondition.constructors], constructors
|
| 15 |
error_condition() noexcept;
|
| 16 |
error_condition(int val, const error_category& cat) noexcept;
|
| 17 |
template <class ErrorConditionEnum>
|
| 18 |
error_condition(ErrorConditionEnum e) noexcept;
|
| 19 |
|
| 20 |
+
// [syserr.errcondition.modifiers], modifiers
|
| 21 |
void assign(int val, const error_category& cat) noexcept;
|
| 22 |
template <class ErrorConditionEnum>
|
| 23 |
error_condition& operator=(ErrorConditionEnum e) noexcept;
|
| 24 |
void clear() noexcept;
|
| 25 |
|
| 26 |
+
// [syserr.errcondition.observers], observers
|
| 27 |
int value() const noexcept;
|
| 28 |
const error_category& category() const noexcept;
|
| 29 |
string message() const;
|
| 30 |
explicit operator bool() const noexcept;
|
| 31 |
|
| 32 |
private:
|
| 33 |
int val_; // exposition only
|
| 34 |
const error_category* cat_; // exposition only
|
| 35 |
};
|
| 36 |
+
}
|
|
|
|
|
|
|
|
|
|
| 37 |
```
|
| 38 |
|