|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
独占future类模板 更多...
#include <future.hpp>
Public 成员函数 | |
| constexpr | future () noexcept |
| 默认构造函数 | |
| future (future &&other) noexcept | |
| 移动构造函数 | |
| future & | operator= (future &&other) noexcept |
| 移动赋值运算符 | |
| Res | get () |
| 获取结果 | |
| shared_future< Res > | share () noexcept |
| 转换为共享future | |
独占future类模板
| Res | 结果类型 |
表示一个异步计算的结果,结果只能被获取一次。
在文件 future.hpp 第 877 行定义.
|
inline |
|
noexcept |
转换为共享future