std::future_errc
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <ios> | ||
enumclass future_errc { broken_promise, | (dal C++11) | |
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.
Indice |
[modifica]Membri costanti
Constant 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 | the asynchronous task abandoned its shared state |
future_already_retrieved | the contents of shared state were already accessed through std::future |
promise_already_satisfied | attempt to store a value in the shared state twice |
no_state | attempt to access std::promise or std::future without an associated shared state |
[modifica]Helper classi
extends the type trait std::is_error_code_enum to identify future error codes (classe template) |
[modifica]Non membri funzioni
constructs a future error code (funzione) | |
constructs a future error_condition (funzione) |
[modifica]Esempio
This section is incomplete Reason: no example |
[modifica]Vedi anche
(C++11) | in possesso di un dipendente dalla piattaforma codice di errore 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) | contiene un codice di errore portatile 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) |