std::shared_future::operator=
De cppreference.com
< cpp | thread | shared future
![]() |
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. |
|
(1) | (depuis C++11) |
|
(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.
1)
Constructeur par défaut. Construit un avenir partagé vide, qui ne se réfère 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 réfère à 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)
Déplacez constructeur. Transfère l'état partagé détenu par
other
à *this. Après la construction, other->valid() == false, aussi valid() retourne la même 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.
[modifier] Paramètres
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. |
[modifier] Exceptions
1)
(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.
2)