|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
引用类型的promise特化 更多...
#include <promise.hpp>
Public 类型 | |
| using | state_type = _INNER __future_base::state_base |
| 状态类型 | |
| using | result_type = _INNER __future_base::basic_result<Res&> |
| 结果类型 | |
| using | ptr_type = _INNER __future_base::Ptr<result_type> |
| 结果指针类型 | |
Public 成员函数 | |
| promise () | |
| 默认构造函数 | |
| promise (promise &&other) noexcept | |
| 移动构造函数 | |
| promise & | operator= (promise &&other) noexcept |
| 移动赋值运算符 | |
| promise (const promise &)=delete | |
| 禁止拷贝构造 | |
| promise & | operator= (const promise &)=delete |
| 禁止拷贝赋值 | |
| ~promise () | |
| 析构函数 | |
| void | swap (promise &other) noexcept |
| 交换两个promise对象 | |
| future< Res & > | get_future () |
| 获取关联的future对象 | |
| void | set_value (Res &value) |
| 设置结果引用 | |
| void | set_exception (exception_ptr exception) |
| 设置异常 | |
| void | set_value_at_thread_exit (Res &value) |
| 在线程退出时设置结果引用 | |
| void | set_exception_at_thread_exit (exception_ptr exception) |
| 在线程退出时设置异常 | |
|
inline |
|
inline |
|
inline |
|
inline |