Freigeben über


promise::operator= Operator

Transfers the associated asynchronous state from a specified promise object.

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

Parameters

  • Other
    A promise object.

Return Value

*this

Remarks

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

Requirements

Header: future

Namespace: std

See Also

Reference

promise Class

<future>