std::make_error_code(std::future_errc)

< 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::error_code 的构造函数在给定 std::future_errc 实参时所调用。

参数

e - 错误码号

返回值

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

示例

参阅

(C++11)
保有依赖于平台的错误码
(类)
(C++11)
鉴别未来体错误码
(枚举)
errc 枚举 e 创建错误码值
(函数)
构造一个 iostream 错误码
(函数)