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 错误代码 (函数) |