std::make_error_code(std::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 错误码
(枚举)

版本历史

  • (当前 | 先前) 2017年8月26日 (六) 18:49Fruderica讨论 | 贡献. . (881字节) (+881). . (以“{{cpp/title|make_error_code{{dsc small|(std::future_errc)}}}} {{cpp/thread/future_errc/navbar}} {{dcl begin}} {{dcl header | future}} {{dcl | since=c++11 | std::erro...”为内容创建页面)