Debian Codegraph @

yo/advancedtemplates/examples/errcode/category/errorcategory

raw
1 std::error_category serves as the base class for specific error category
2 types, such as std::system_category, std::iostream_category, etc. Each
3 specific category class defines the error_code - error_condition mapping and
4 holds the explanatory strings for all error_conditions. The objects of error
5 category classes are treated as singletons, passed by reference.
6
7 Member functions
8 (constructor)
9 constructs an error_category
10
11 operator=
12
13 virt. name
14 obtains the name of the category
15
16 virt. default_error_condition(int errorCodeEnumNr)
17 maps error_code to error_condition
18 (error_condition(ev, *this).
19
20 virt equivalent
21 compares error_code and error_condition for equivalence
22
23 equivalent( int code, const std::error_condition& condition )
24 = default_error_condition(code) == condition.
25
26
27 virt. message
28 obtains the explanatory string
29
30 operator==operator!=operator<
31 compares two error categories
32
33
34
35
36