std::make_error_code(std::future_errc)
来自 cppreference.cn
< cpp | thread | future errc
在头文件 <future> 中定义 |
||
std::error_code make_error_code( std::future_errc e ); |
(C++11 起) | |
从 std::future_errc 类型的值构造一个 std::error_code 对象,如同通过以下方式:
std::error_code(static_cast<int>(e), std::future_category()).
当给定 std::future_errc 参数时,此函数由 std::error_code 的构造函数调用。
目录 |
[编辑] 参数
e | - | 错误码数字 |
[编辑] 返回值
一个 std::error_code 类型的值,它包含来自 e
的错误代码编号,并与错误类别 "future" 相关联。
[编辑] 示例
本节不完整 原因:无示例 |
[编辑] 参阅
(C++11) |
保存平台相关错误码 (类) |
(C++11) |
标识 future 错误代码 (枚举) |
(C++11) |
为 errc 枚举 e 创建错误码值(函数) |
构造一个 iostream 错误码 (函数) |