std::future<T>:: future
From cppreference.net
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::future
| Member functions | ||||
|
future::future
|
||||
| Getting the result | ||||
| State | ||||
|
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
。
参数
| 其他 | - |
用于从其他
std::future
获取共享状态的另一个对象
|