std::error_category
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <system_error> 中定义
|
||
| class error_category; |
(C++11 起) | |
std::error_category作为特定错误类别的类型,如std::system_category的基类,std::iostream_category,每个具体类类定义了error_code - error_condition映射和持有的说明为所有error_conditions的字符串。被视为错误类别类的对象的单身人士,通过参考.原文:
std::error_category serves as the base class for specific error category types, such as std::system_category, std::iostream_category, etc. Each specific category class defines the error_code - error_condition mapping and holds the explanatory strings for all error_conditions. The objects of error category classes are treated as singletons, passed by reference.[编辑] 成员函数
| 构造一个 error_category(公共成员函数) | |
| [虚]</div></div>
|
解构 error_category(公有虚成员函数) |
| operator= [删除]</div></div>
|
无法复制转让 (公共成员函数) |
| [虚]</div></div>
|
获得的类别名称 (公有虚成员函数) |
| [虚]</div></div>
|
maps error_code to error_condition (公有虚成员函数) |
| [虚]</div></div>
|
比较 error_code和error_condition的等价性原文: compares error_code and error_condition for equivalence(公有虚成员函数) |
| [虚]</div></div>
|
得到的解释的字符串 (公有虚成员函数) |
| 比较两个错误类别 (函数) | |
[编辑] 特定错误类别
| (C++11) |
标识通用的错误类别 原文: identifies the generic error category (函数) |
| (C++11) |
识别操作系统错误类别 原文: identifies the operating system error category (函数) |
| (C++11) |
标识的iostream类错误 原文: identifies the iostream error category (函数) |
| (C++11) |
确定了未来的错误类别 原文: identifies the future error category (函数) |
| (C++11) |
持有便携式的错误代码 (类) |
| (C++11) |
持有与平台相关的错误代码 原文: holds a platform-dependent error code (类) |