std::error_condition (3) - Linux Manuals

std::error_condition: std::error_condition

NAME

std::error_condition - std::error_condition

Synopsis


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.

Member functions


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

Non-member functions


operator== compares error_conditions and error_codes
operator!= (function)
operator<

Helper classes


is_error_condition_enum identifies an enumeration as an std::error_condition
                                (class template)
(C++11)


std::hash<std::error_condition> hash support for std::error_condition
                                (class template specialization)
(C++17)

See also


error_code holds a platform-dependent error code
               (class)
(C++11)


error_category base class for error categories
               (class)
(C++11)