std::error_condition - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::error_condition

From cppreference.com
< cpp‎ | error

Defined in header `<system_error>` |  |
class error_condition; |  | (since C++11)

`std::error_condition` is a platform-independent error code. Like std::error_code, it is uniquely identified by an integer value and a std::error_category, but unlike std::error_code, the value is not platform-dependent.

A typical implementation holds one integer data member (the value) and a pointer to an std::error_category.

### [edit] Member functions

(constructor) | constructs an `error_condition` (public member function) [edit]
operator= | replaces the contents (public member function) [edit]
assign | replaces the contents (public member function) [edit]
clear | sets the error_condition to value 0 in generic_category (public member function) [edit]
value | obtains the value of the error_condition (public member function) [edit]
category | obtains the `error_category` for this `error_condition` (public member function) [edit]
message | obtains the explanatory string (public member function) [edit]
operator bool | checks if the value is non-zero (public member function) [edit]

### [edit] Non-member functions

operator==operator!=operator< | compares error_conditions and error_codes (function) [edit]

### [edit] Helper classes

is_error_condition_enum (C++11) | identifies an enumeration as an std::error_condition (class template) [edit]

### [edit] See also

error_code (C++11) | holds a platform-dependent error code (class) [edit]
error_category (C++11) | base class for error categories (class) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/error/error_condition&oldid=63308"