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.
[編集] 例外
[編集] 例
| This section is incomplete Reason: 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. (クラス) |