std::make_error_condition(std::future_errc)

< cpp‎ | thread‎ | future errc
在标头 <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 - 错误码号

返回值

保有来自 e 的错误码号并关联到错误类别 "future"std::error_condition 类型的值。

示例

参阅

(C++11)
保有可移植的错误码
(类)
(C++11)
鉴别未来体错误码
(枚举)