std::packaged_task::get_future

std::future<R> get_future();
(C++11 起)

返回与 *this 共享同一共享状态的 future

get_future 只能对每个 packaged_task 调用一次。

参数

(无)

返回值

*this 共享同一共享状态的 future

异常

遇到下列条件时为 std::future_error

版本历史

  • (当前 | 先前 2017年9月25日 (一) 03:16Fruderica讨论 | 贡献. . (735字节) (-931). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 11:32P12bot讨论 | 贡献 . . (1,666字节) (+2). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 19:30P12bot讨论 | 贡献 . . (1,664字节) (+345). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 03:08P12讨论 | 贡献 . . (1,319字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (1,319字节) (+1,319). . (Translated from the English version using Google Translate)