std::make_error_condition(std::future_errc)
来自cppreference.com
< cpp | thread | future errc
并发支持库
|
|
std::future_errc
非成员函数 | ||||
make_error_condition
|
||||
辅助类 | ||||
在标头
<future>
定义
|
||
std::error_condition
make_error_condition( std::future_errc
e );
|
(C++11 起) | |
从 std::future_errc 类型值构造 std::error_condition 对象,如同用:
std::error_condition(static_cast<int>(e), std::future_category()) 。
参数
e | - | 错误码号 |
返回值
保有关联到 error_category "future" ,保有来自
的 error_code 号 e
的 std::error_condition
类型值。
示例
本节未完成 原因:暂无示例 |
参阅
(C++11)
|
保有可移植的错误码 (类) |
(C++11)
|
鉴别 future 错误码 (枚举) |