将从指定的对象 与异步的状态。
shared_future& operator=(shared_future&& Right) noexcept;
shared_future& operator=(const shared_future& Right);
参数
- Right
一个 shared_future 对象。
返回值
*this
备注
对于第一个运算符,Right 不再具有异步关联的状态。操作之后。
对于第二种方法,Right 保持其关联异步的状态。
要求
标头: future
命名空间: std