std::future::future

future() noexcept;
(1) (C++11 起)
future( future&& other ) noexcept;
(2) (C++11 起)
future( const future& other ) = delete;
(3) (C++11 起)

构造 std::future 对象。

1) 默认构造函数。构造无共享状态的 std::future 。构造后, valid() == false
2) 移动构造函数。用移动语义,以 other 的共享状态构造 std::future 。构造后 other.valid() == false
3) std::future可复制构造 (CopyConstructible) 。

参数

other - 获得共享状态来源的另一 std::future

版本历史

  • (当前 | 先前 2017年9月24日 (日) 07:55Fruderica讨论 | 贡献. . (848字节) (-257). . (撤销)
  • 当前 | 先前 2017年3月13日 (一) 04:36Jason n讨论 | 贡献 . . (1,105字节) (+8). . (撤销)
  • 当前 | 先前 2017年3月13日 (一) 04:28Jason n讨论 | 贡献. . (1,097字节) (-476). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 11:31P12bot讨论 | 贡献 . . (1,573字节) (-116). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 20:07P12bot讨论 | 贡献 . . (1,689字节) (+257). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 03:08P12讨论 | 贡献 . . (1,432字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (1,432字节) (+1,432). . (Translated from the English version using Google Translate)