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. |
bool valid()const; | (depuis C++11) | |
Vérifie si l'avenir se réfère à un état partagé avec une promesse. C'est le seul cas des contrats à terme renvoyés par std::promise::get_future(), std::packaged_task::get_future() ou std::async() jusqu'à ce que la première fois
get()
orshare()
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()
orshare()
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.
Sommaire |
[modifier]Paramètres
(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.
[modifier]Retourne la valeur
true si ce * fait référence à 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.
[modifier]Exceptions
[modifier]Exemple
This section is incomplete Reason: no example |
[modifier]Voir aussi
attend que le résultat 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) |