std::shared_future
来自cppreference.com
![]() |
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <future> 中定义
|
||
template< class T > class shared_future; |
(1) | (since C++11) |
template< class T > class shared_future<T&>; |
(2) | (since C++11) |
template<> class shared_future<void>; |
(3) | (since C++11) |
本章尚未完成 |
[编辑] 。成员函数。
。构建未来的对象。 (公共成员函数) | |
。解构未来的对象。 (公共成员函数) | |
。分配的内容。 (公共成员函数) | |
| |
返回结果 (公共成员函数) | |
| |
如果未来的支票条带应许的共享状态 原文: checks if the future has shared state with a promise (公共成员函数) | |
等待的结果变得可用 原文: waits for the result to become available (公共成员函数) | |
waits for the result, returns if it is not available for the specified timeout duration (公共成员函数) | |
等待结果,则返回,如果它是不可用,直到已达到指定的时间点 原文: waits for the result, returns if it is not available until specified time point has been reached (公共成员函数) |