.TH "std::error_condition" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::error_condition .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBerror_condition\fP () noexcept" .br .RI "Initialize with a zero (no error) value and the generic category\&. " .ti -1c .RI "template<\fBtypename\fP \fB_ErrorConditionEnum\fP , \fBtypename\fP = typename enable_if::value>::type> \fBerror_condition\fP (\fB_ErrorConditionEnum\fP __e) noexcept" .br .ti -1c .RI "\fBerror_condition\fP (int \fB__v\fP, const \fBerror_category\fP &\fB__cat\fP) noexcept" .br .RI "Initialize with the specified value and category\&. " .ti -1c .RI "\fBvoid\fP \fBassign\fP (int \fB__v\fP, const \fBerror_category\fP &\fB__cat\fP) noexcept" .br .RI "Set the value and category\&. " .ti -1c .RI "const \fBerror_category\fP & \fBcategory\fP () const noexcept" .br .RI "The error category that this error belongs to\&. " .ti -1c .RI "\fBvoid\fP \fBclear\fP () noexcept" .br .RI "Reset the value and category to the default-constructed state\&. " .ti -1c .RI "\fBstring\fP \fBmessage\fP () const" .br .RI "The category's description of the value\&. " .ti -1c .RI "\fBoperator bool\fP () const noexcept" .br .RI "Test whether \fCvalue()\fP is non-zero\&. " .ti -1c .RI "template<\fBtypename\fP \fB_ErrorConditionEnum\fP > \fBenable_if\fP< \fBis_error_condition_enum\fP< \fB_ErrorConditionEnum\fP >\fB::value\fP, \fBerror_condition\fP & >::type \fBoperator=\fP (\fB_ErrorConditionEnum\fP __e) noexcept" .br .ti -1c .RI "int \fBvalue\fP () const noexcept" .br .RI "The error value\&. " .in -1c .SS "Related Symbols" (Note that these are not member symbols\&.) .in +1c .ti -1c .RI "\fBerror_condition\fP \fBmake_error_condition\fP (errc __e) noexcept" .br .ti -1c .RI "bool \fBoperator!=\fP (const \fBerror_condition\fP &\fB__lhs\fP, const \fBerror_code\fP &\fB__rhs\fP) noexcept" .br .ti -1c .RI "bool \fBoperator!=\fP (const \fBerror_condition\fP &\fB__lhs\fP, const \fBerror_condition\fP &\fB__rhs\fP) noexcept" .br .ti -1c .RI "bool \fBoperator<\fP (const \fBerror_condition\fP &\fB__lhs\fP, const \fBerror_condition\fP &\fB__rhs\fP) noexcept" .br .ti -1c .RI "bool \fBoperator==\fP (const \fBerror_code\fP &\fB__lhs\fP, const \fBerror_code\fP &\fB__rhs\fP) noexcept" .br .ti -1c .RI "bool \fBoperator==\fP (const \fBerror_code\fP &\fB__lhs\fP, const \fBerror_condition\fP &\fB__rhs\fP) noexcept" .br .ti -1c .RI "bool \fBoperator==\fP (const \fBerror_condition\fP &\fB__lhs\fP, const \fBerror_code\fP &\fB__rhs\fP) noexcept" .br .ti -1c .RI "bool \fBoperator==\fP (const \fBerror_condition\fP &\fB__lhs\fP, const \fBerror_condition\fP &\fB__rhs\fP) noexcept" .br .in -1c .SH "Detailed Description" .PP Class error_condition .PP This class represents error conditions that may be visible at an API boundary\&. Different \fCerror_code\fP values that can occur within a library or module might map to the same \fCerror_condition\fP\&. .PP An \fCerror_condition\fP represents something that the program can test for, and subsequently take appropriate action\&. .PP \fBSince\fP .RS 4 C++11 .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "std::error_condition::error_condition ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Initialize with a zero (no error) value and the generic category\&. .SS "std::error_condition::error_condition (int __v, const \fBerror_category\fP & __cat)\fC [inline]\fP, \fC [noexcept]\fP" .PP Initialize with the specified value and category\&. .SH "Member Function Documentation" .PP .SS "\fBvoid\fP std::error_condition::assign (int __v, const \fBerror_category\fP & __cat)\fC [inline]\fP, \fC [noexcept]\fP" .PP Set the value and category\&. .SS "const \fBerror_category\fP & std::error_condition::category () const\fC [inline]\fP, \fC [noexcept]\fP" .PP The error category that this error belongs to\&. .SS "\fBvoid\fP std::error_condition::clear ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Reset the value and category to the default-constructed state\&. .SS "\fBstring\fP std::error_condition::message () const\fC [inline]\fP" .PP The category's description of the value\&. .SS "std::error_condition::operator bool () const\fC [inline]\fP, \fC [explicit]\fP, \fC [noexcept]\fP" .PP Test whether \fCvalue()\fP is non-zero\&. .SS "int std::error_condition::value () const\fC [inline]\fP, \fC [noexcept]\fP" .PP The error value\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.