|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
future::future | ||||
| Getting the result | ||||
| State | ||||
future()noexcept; | (1) | (since C++11) |
future( future&& other)noexcept; | (2) | (since C++11) |
future(const future& other)= delete; | (3) | (since C++11) |
Constructs astd::future object.
std::future with no shared state. After construction,valid()==false.std::future with the shared state ofother using move semantics. After construction,other.valid()==false.| other | - | anotherstd::future to acquire shared state from |