shared_future::operator= Operator
Transfers an associated asynchronous state from a specified object.
shared_future& operator=(shared_future&& Right) noexcept;
shared_future& operator=(const shared_future& Right);
Parameters
- Right
A shared_future object.
Return Value
*this
Remarks
For the first operator, Right no longer has an associated asynchronous state after the operation.
For the second method, Right maintains its associated asynchronous state.
Requirements
Header: future
Namespace: std