std::future<T>:: ~future
From cppreference.net
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::future
| Member functions | ||||
|
future::~future
|
||||
| Getting the result | ||||
| State | ||||
|
~future
(
)
;
|
(自 C++11 起) | |
释放所有共享状态。这意味着:
- 若当前对象持有其共享状态的最后引用,则共享状态将被销毁。
- 当前对象放弃对其共享状态的引用。
|
(since C++14) |