std::future<T>::~future
~future();
|
(C++11 起) | |
释放任何共享状态。这表示
- 若当前对象持有其共享状态的最后一个引用,则销毁共享状态;
- 当前对象放弃其共享状态的引用;
|
(C++14 起) |
实践中,仅当任务的运行策略为 std::launch::async 时这些操作才会阻塞(见《Effective Modern C++》条款 36),因为运行时系统选择这么做,或者说在 std::async 调用中规定如此。
~future();
|
(C++11 起) | |
释放任何共享状态。这表示
|
(C++14 起) |
实践中,仅当任务的运行策略为 std::launch::async 时这些操作才会阻塞(见《Effective Modern C++》条款 36),因为运行时系统选择这么做,或者说在 std::async 调用中规定如此。