std::future<T>::future
来自cppreference.com
| future() noexcept; |
(1) | (C++11 起) |
| future( future&& other ) noexcept; |
(2) | (C++11 起) |
| future( const future& other ) = delete; |
(3) | (C++11 起) |
构造 std::future 对象。
2) 移动构造函数。用移动语义,以
other 的共享状态构造 std::future 。构造后 other.valid() == false 。参数
| other | - | 获得共享状态来源的另一 std::future
|