std::future_errc
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <ios> 中定义
|
||
enum class future_errc { broken_promise, |
(C++11 起) | |
The scoped enumeration std::future_errc
defines the error codes reported by std::future and related classes in std::future_error exception objects. Only four error codes are required, although the implementation may define additional error codes. Because the appropriate specialization of std::is_error_code_enum is provided, values of type std::future_errc
are implicitly convertible to std::error_code.
目录 |
[编辑] 。会员常数。
。常数。
|
Explanation |
broken_promise
|
the asynchronous task abandoned its shared state |
future_already_retrieved
|
the contents of shared state were already accessed through std::future |
promise_already_satisfied
|
attempt to store a value in the shared state twice |
no_state
|
attempt to access std::promise or std::future without an associated shared state |
[编辑] 。 Helper类。
extends the type trait std::is_error_code_enum to identify future error codes (类模板) |
[编辑] 。非成员函数。
constructs a future error code (函数) | |
constructs a future error_condition (函数) |
[编辑] 。为例。
本章尚未完成 原因:暂无示例 |
[编辑] 。另请参阅。
(C++11) |
持有与平台相关的错误代码 原文: holds a platform-dependent error code (类) |
(C++11) |
持有便携式的错误代码 (类) |