std::future::valid
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. |
<metanoindex/>
<tbody> </tbody> bool valid() const; |
(depuis C++11) | |
Vrifie si l'avenir se rfre un tat partag avec une promesse. C'est le seul cas des contrats terme renvoys par
std::promise::get_future(), std::packaged_task::get_future() ou std::async() jusqu' ce que la premire fois get()or share() est appel .Original:
Checks if the future refers to a state shared with a promise. This is the case only for futures returned by
std::promise::get_future(), std::packaged_task::get_future() or std::async() until the first time get()or share() is called.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.
Paramtres
(Aucun)
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.
Retourne la valeur
true si ce * fait rfrence un tat partag, sinon false .Original:
true if *this refers to a shared state, otherwise false.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.
Exceptions
Exemple
| This section is incomplete Reason: no example |
Voir aussi
attend que le rsultat soit disponible Original: waits for the result to become available The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |