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 的 error_code 号并关联到 error_category "future"std::error_code

示例

参阅

(C++11)
保有依赖于平台的错误码
(类)
(C++11)
鉴别 future 错误码
(枚举)