promise::operator= Operator

promise::operator= Operator

 

Transfers the associated asynchronous state from a specified promise object.

promise& operator=(
   promise&& Other
) _NOEXCEPT;

Other

A promise object.

This operator transfers the associated asynchronous state from Other. After the transfer, Other is empty.

Requirements

Header: future

Namespace: std

Show:
© 2016 Microsoft