std::future_category
Aus 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. |
definiert in Header <future>
|
||
const std::error_category& future_category(); |
(seit C++11) | |
Ruft einen Verweis auf den statischen Fehler Kategorie-Objekt für die Fehler im Zusammenhang mit Futures und Versprechungen. Das Objekt ist erforderlich, um die virtuelle Funktion error_category::name() überschreiben, um einen Zeiger auf den String "future" zurückzukehren. Es wird verwendet, um Fehler-Codes in den Ausnahmen des Typs std::future_error geben sollen .
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.
Inhaltsverzeichnis |
[Bearbeiten] Parameter
(None)
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.
[Bearbeiten] Rückgabewert
ein Verweis auf das statische Objekt von unspezifizierten Laufzeittyp aus std::error_category abgeleitet .
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.
[Bearbeiten] Ausnahmen
[Bearbeiten] Beispiel
This section is incomplete Reason: no example |
[Bearbeiten] Siehe auch
(C++11) |
auf die künftigen Fehlercodes 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. (enum) |
(C++11) |
meldet einen Fehler im Zusammenhang mit Futures oder Versprechungen 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. (Klasse) |
(C++11) |
Basisklasse für Fehler Kategorien 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. (Klasse) |