std::future::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> future(); |
(1) | (desde C++11) |
future( future&& other ); |
(2) | (desde C++11) |
future( const future& other ) = delete; |
(3) | (desde C++11) |
Constrói um objeto
std::future.Original:
Constructs a
std::future object.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)
Construtor padrão. Constrói um
std::future sem estado compartilhado. Após a construção, valid() == false.Original:
Default constructor. Constructs a
std::future with no shared state. After construction, 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)
Mova construtor. Constrói um
std::future com o estado compartilhado de other usando a semântica de movimento. Após a construção, other.valid() == false.Original:
Move constructor. Constructs a
std::future with the shared state of other using move semantics. After construction, other.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.
Parâmetros
| other | - | outro
std::future para adquirir o estado compartilhado deOriginal: another std::future to acquire shared state fromThe 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)