std::shared_future::shared_future
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> shared_future(); |
(1) | (depuis C++11) |
shared_future( const shared_future& other ); |
(1) | (depuis C++11) |
shared_future( future<R>&& other ); |
(1) | (depuis C++11) |
shared_future( shared_future&& other ); |
(1) | (depuis C++11) |
Construit une nouvelle
shared_future .Original:
Constructs a new
shared_future.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.
begin)
1)
Constructeur par dfaut. Construit un avenir partag vide, qui ne se rfre pas un tat partag, c'est-
valid() == false .Original:
Default constructor. Constructs an empty shared future, that doesn't refer to a shared state, that is
valid() == 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.
2)
Construit un avenir commun qui se rfre l'tat partag, comme
other, s'il ya un .Original:
Constructs a shared future that refers to the same shared state, as
other, if there's any.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.
3-4)
Dplacez constructeur. Transfre l'tat partag dtenu par
other *this. Aprs la construction, other->valid() == false, aussi valid() retourne la mme valeur que other.valid() aurait retourn avant la construction .Original:
Move constructor. Transfers the shared state held by
other to *this. After the construction, other->valid() == false, also valid() returns the same value as other.valid() would have returned before the construction.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
| other | - | un autre objet pour initialiser l'avenir avec
Original: another future object to initialize with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Exceptions
1)
2)
(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.
3-4)