std:: make_error_code (std::future_errc)
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Non-member functions | ||||
|
make_error_code
|
||||
| Helper classes | ||||
|
定义于头文件
<future>
|
||
|
std::
error_code
make_error_code
(
std::
future_errc
e
)
;
|
(C++11 起) | |
从类型为 std::error_code 的值构造一个 std::future_errc 对象,其方式类似于:
std:: error_code ( static_cast < int > ( e ) , std:: future_category ( ) ) .
当给定 std::error_code 参数时,该函数由 std::future_errc 的构造函数调用。
目录 |
参数
| e | - | 错误代码编号 |
返回值
一个类型为
std::error_code
的值,该值持有来自
e
的错误码编号,关联的错误类别为
"future"
。
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
(C++11)
|
持有平台相关的错误代码
(类) |
|
(C++11)
|
标识 future 错误代码
(枚举) |
|
(C++11)
|
为
errc
枚举创建错误代码值
e
(函数) |
|
(C++11)
|
构造 iostream 错误代码
(函数) |