promise::swap方法

交换相 关联的异步状态 与指定的对象。

void swap(promise& Other) _NOEXCEPT;

参数

  • Other
    promise 对象。

要求

**标头:**将来

**命名空间:**std

请参见

参考

promise Class

<future>