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) | (desde C++11) |
shared_future( const shared_future& other ); |
(1) | (desde C++11) |
shared_future( future<R>&& other ); |
(1) | (desde C++11) |
shared_future( shared_future&& other ); |
(1) | (desde C++11) |
Constrói um
shared_future novo.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)
Construtor padrão. Constrói um futuro vazio compartilhado, que não se refere a um estado compartilhado, que é
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)
Constrói um futuro comum que se refere ao mesmo estado compartilhado, como
other, se há alguma.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)
Mova construtor. Transfere o estado compartilhado realizada por
other para *this. Após a construção other->valid() == false, também valid() retorna o mesmo valor que teria retornado other.valid() antes da construção.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.
Parâmetros
| other | - | outro objeto de futuro para inicializar com
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. |
Exceções
1)
2)
(Nenhum)
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)