◐ Shell
clean mode source ↗

std::future_category – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

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.

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.

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.

Ausnahmen

Beispiel

Siehe auch

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) [edit]

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) [edit]

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) [edit]