promise::promise 建構函式
建構 promise 物件。
promise();
template<class Alloc>
promise(
allocator_arg_t,
const Alloc& Al
);
promise(
promise&& Other
) _NOEXCEPT;
參數
Al
記憶體配置器。 如需詳細資訊,請參閱 <allocators>。Other
promise 物件。
備註
第一個建構函式建構空 的promise 物件。
第二個建構函式建構空的 promise 物件並為記憶體配置使用 Al 。
第三個建構函式建構 promise 物件並從 Other中將這個關聯的非同步狀態,並讓空白 Other 。
需求
標題: 未來
命名空間: 可以