CARVIEW |
Select Language
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 22 Jul 2025 22:38:20 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
ETag: W/"7481-wftNzK/wHR6GnXpk6/W1bXx1MFA"
Content-Encoding: gzip
Objects of this type hold a condition value associated with a category.
Objects of this type describe errors in a generic way so that they may be portable across different systems. This is in contrast with error_code objects, that may contain system-specific information.
Because error_condition objects can be compared with error_code objects directly by using relational operators, error_condition objects are generally used to check whether a particular error_code obtained from the system matches a specific error condition no matter the system.
The categories associated with the error_condition and the error_code define the equivalences between them.
Reference
C library:
- <cassert> (assert.h)
- <cctype> (ctype.h)
- <cerrno> (errno.h)
-
<cfenv> (fenv.h)C++11
- <cfloat> (float.h)
-
<cinttypes> (inttypes.h)C++11
- <ciso646> (iso646.h)
- <climits> (limits.h)
- <clocale> (locale.h)
- <cmath> (math.h)
- <csetjmp> (setjmp.h)
- <csignal> (signal.h)
- <cstdarg> (stdarg.h)
-
<cstdbool> (stdbool.h)C++11
- <cstddef> (stddef.h)
-
<cstdint> (stdint.h)C++11
- <cstdio> (stdio.h)
- <cstdlib> (stdlib.h)
- <cstring> (string.h)
-
<ctgmath> (tgmath.h)C++11
- <ctime> (time.h)
-
<cuchar> (uchar.h)C++11
- <cwchar> (wchar.h)
- <cwctype> (wctype.h)
Containers:
-
<array>C++11
- <deque>
-
<forward_list>C++11
- <list>
- <map>
- <queue>
- <set>
- <stack>
-
<unordered_map>C++11
-
<unordered_set>C++11
- <vector>
-
Input/Output:
Multi-threading:
-
<atomic>C++11
-
<condition_variable>C++11
-
<future>C++11
-
<mutex>C++11
-
<thread>C++11
-
Other:
- <algorithm>
- <bitset>
-
<chrono>C++11
-
<codecvt>C++11
- <complex>
- <exception>
- <functional>
-
<initializer_list>C++11
- <iterator>
- <limits>
- <locale>
- <memory>
- <new>
- <numeric>
-
<random>C++11
-
<ratio>C++11
-
<regex>C++11
- <stdexcept>
- <string>
-
<system_error>C++11
-
<tuple>C++11
-
<type_traits>C++11
-
<typeindex>C++11
- <typeinfo>
- <utility>
- <valarray>
<system_error>
classes
-
error_categoryC++11
-
error_codeC++11
-
error_conditionC++11
-
is_error_code_enumC++11
-
is_error_condition_enumC++11
-
system_errorC++11
-
enum classes
-
errcC++11
-
functions
-
generic_categoryC++11
-
make_error_codeC++11
-
make_error_conditionC++11
-
system_categoryC++11
-
error_condition
-
error_condition::error_conditionC++11
member functions
-
error_condition::assignC++11
-
error_condition::categoryC++11
-
error_condition::clearC++11
-
error_condition::messageC++11
-
error_condition::operator boolC++11
-
error_condition::operator=C++11
-
error_condition::valueC++11
-
non-member overloads
- Reference
- <system_error>
- error_condition
class
<system_error>
std::error_condition
class error_condition;
Error condition
Objects of this type describe errors in a generic way so that they may be portable across different systems. This is in contrast with error_code objects, that may contain system-specific information.
Because error_condition objects can be compared with error_code objects directly by using relational operators, error_condition objects are generally used to check whether a particular error_code obtained from the system matches a specific error condition no matter the system.
The categories associated with the error_condition and the error_code define the equivalences between them.
Member functions
- (constructor)
- Construct error_condition (public member function)
- assign
- Assign error condition (public member function)
- operator=
- Assign error condition (public member function)
- clear
- Clear error condition (public member function)
- value
- Error condition value (public member function)
- category
- Get category (public member function)
- message
- Get message (public member function)
- operator bool
- Convert to bool (public member function)
Non-member function overloads
- relational operators (error_condition)
- Relational operators (function)
Home page | Privacy policy
© cplusplus.com, 2000-2025 - All rights reserved - v3.3.4s
Spotted an error? contact us
© cplusplus.com, 2000-2025 - All rights reserved - v3.3.4s
Spotted an error? contact us