共用方式為


future::future Constructor

Constructs a future object.

future() _NOEXCEPT;
future(
   future&& Other
) _NOEXCEPT;

Parameters

  • Other
    A future object.

Remarks

The first constructor constructs a future object that has no associated asynchronous state.

The second constructor constructs a future object and transfers the associated asynchronous state from Other. Other no longer has an associated asynchronous state.

Requirements

Header: future

Namespace: std

See Also

Reference

future Class

<future>