std::future_errc
De 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. |
Déclaré dans l'en-tête <ios> | ||
enumclass future_errc { broken_promise, | (depuis C++11) | |
La portée
std::future_errc
énumération définit les codes d'erreur générés par std::future et les classes connexes dans les objets d'exception std::future_error. Seuls quatre codes d'erreur sont nécessaires, même si la mise en œuvre peut définir des codes d'erreur supplémentaires. Parce que la spécialisation approprié de std :: is_error_code_enum est fourni, les valeurs de type std::future_errc
sont implicitement convertible en std::error_code .Original:
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.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.
Sommaire |
[modifier]Constantes membres
Constante Original: Constant The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | Explanation |
broken_promise | la tâche asynchrone abandonné son état partagé Original: the asynchronous task abandoned its shared state The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
future_already_retrieved | le contenu de l'état partagé étaient déjà accessibles via std::future Original: the contents of shared state were already accessed through std::future The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
promise_already_satisfied | tenter de mémoriser une valeur dans l'état partagé à deux reprises Original: attempt to store a value in the shared state twice The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_state | tenter d'accéder std::promise ou std::future sans un Etat associé partagé Original: attempt to access std::promise or std::future without an associated shared state The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier]Classes d'aide
prolonge le trait std::is_error_code_enum type pour identifier les codes d'erreur futures Original: extends the type trait std::is_error_code_enum to identify 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. (classe générique) |
[modifier]Fonctions annexes
construit un code d'erreur future Original: constructs a future error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
construit un error_condition avenir Original: constructs a future error_condition The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) |
[modifier]Exemple
This section is incomplete Reason: no example |
[modifier]Voir aussi
(C++11) | détient un code d'erreur dépendant de la plate-forme Original: holds a platform-dependent error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) |
(C++11) | détient un code d'erreur portable Original: holds a portable error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) |