shared_future(); | (1) | (since C++11) |
shared_future( const shared_future& other ); | (2) | (since C++11) |
shared_future( std::future<T>&& other ); | (3) | (since C++11) |
shared_future( shared_future&& other ); | (4) | (since C++11) |
Constructs a new shared_future
.
valid() == false
.other
, if there's any.other
to *this
. After the construction, other->valid() == false
, also valid()
returns the same value as other.valid()
would have returned before the construction.other | - | another future object to initialize with |
noexcept
specification: noexcept
noexcept
specification: noexcept
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/thread/shared_future/shared_future