std::promise::swap

void swap( promise& other ) noexcept;
(C++11 起)

交换二个 std::promise 对象的内容。

目录

参数

other - 与之交换的 std::promise 对象

返回值

(无)

示例

参阅

特化 std::swap 算法
(函数模板)

版本历史

  • (当前 | 先前 2017年9月25日 (一) 00:50Fruderica讨论 | 贡献. . (479字节) (-244). . (撤销)
  • 当前 | 先前 2017年9月16日 (六) 06:492001:da8:8000:e082::9933讨论. . (723字节) (-136). . (将英文版本人工翻译为中文) (撤销)
  • 当前 | 先前 2013年7月2日 (二) 11:33P12bot讨论 | 贡献 . . (859字节) (-51). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 19:10P12bot讨论 | 贡献 . . (910字节) (+249). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 03:32P12讨论 | 贡献 . . (661字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (661字节) (+661). . (Translated from the English version using Google Translate)