promise 类
Describes“异步提供程序” .
template<class Ty>
class promise;
成员
公共构造函数
Name |
说明 |
---|---|
构造 promise 对象。 |
公共方法
Name |
说明 |
---|---|
返回与承诺有关的“将来” hh920539(v=vs.120).md 。 |
|
基本设置承诺的结果指示异常。 |
|
基本设置 的结果指示异常,只有在销毁后当前线程上的所有线程本地对象 (通常在线程退出时)才会传递通知。 |
|
基本设置承诺的结果指示值。 |
|
基本设置的结果指示异常,只有在销毁后当前线程上的所有线程本地对象 (通常在线程退出时)才会传递通知。 |
|
交换“关联的异步状态” 与指定的承诺对象。 |
公共运算符
Name |
说明 |
---|---|
此承诺对象共享状态的分配。 |
继承层次结构
promise
要求
标头: future
命名空间: std