std::future_category
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <future>
|
||
| const std::error_category& future_category(); |
(C++11 起) | |
。获得的静态误差的错误相关的期货和承诺类对象的引用。需要重写虚函数error_category::name()返回一个指针,指向的字符串"future"的对象。它被用来确定提供的错误代码在例外的类型std::future_error.
Original:
Obtains a reference to the static error category object for the errors related to futures and promises. The object is required to override the virtual function error_category::name() to return a pointer to the string "future". It is used to identify error codes provided in the exceptions of type std::future_error.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 。参数。
。 (无)。
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
===。 返回值。===
。静态对象的引用未指定的运行时类型,来自std::error_category.
Original:
a reference to the static object of unspecified runtime type, derived from std::error_category.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 。例外。
[编辑] 。为例。
| 本节是不完整的 原因: no example |
[编辑] 。另请参阅。
| (C++11) |
识别未来的错误代码 Original: identifies the future error codes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (枚举) |
| (C++11) |
报告一个错误相关的期货或承诺 Original: reports an error related to futures or promises The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (类) |
| (C++11) |
错误类型的基类 Original: base class for error categories The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (类) |