。 <std::promise>。<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">原文:</div><div class="t-tr-dropdown-orig"><std::promise></div><div class="t-tr-dropdown-notes">文本通过[http://translate.google.com 谷歌翻译]机器翻译。<br/>你可以帮忙校正和验证翻译。点击[[Cppreference:MachineTranslations|此处]]查看指示。</div></div></div></div></div> - cppreference.com" /> std::std::uses_allocator<div class="t-tr-text">。 <std::promise>。<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">原文:</div><div class="t-tr-dropdown-orig"><std::promise></div><div class="t-tr-dropdown-notes">文本通过[http://translate.google.com 谷歌翻译]机器翻译。<br/>你可以帮忙校正和验证翻译。点击[[Cppreference:MachineTranslations|此处]]查看指示。</div></div></div></div></div> - cppreference.com

std::std::uses_allocator<div class="t-tr-text">。 <std::promise>。<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">原文:</div><div class="t-tr-dropdown-orig"><std::promise></div><div class="t-tr-dropdown-notes">文本通过[http://translate.google.com 谷歌翻译]机器翻译。<br/>你可以帮忙校正和验证翻译。点击[[Cppreference:MachineTranslations|此处]]查看指示。</div></div></div></div></div>

来自cppreference.com
< cpp‎ | thread‎ | promise
2012年11月2日 (五) 20:08P12bot讨论 | 贡献的版本

 
 
并发支持库
线程
(C++11)
(C++20)
this_thread 命名空间
(C++11)
(C++11)
(C++11)
协作式取消
互斥
(C++11)
通用锁管理
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
条件变量
(C++11)
信号量
闩与屏障
(C++20)
(C++20)
未来体
(C++11)
(C++11)
(C++11)
(C++11)
安全回收
(C++26)
风险指针
原子类型
(C++11)
(C++20)
原子类型的初始化
(C++11)(C++20 弃用)
(C++11)(C++20 弃用)
内存定序
(C++11)(C++26 弃用)
原子操作的自由函数
原子标志的自由函数
 
 
template< class R, class Alloc >
struct uses_allocator<std::promise<R>, Alloc> : true_type { };
(C++11 起)
。提供一个专业化的std::uses_allocator型特征std::promise.
原文:
Provides a specialization of the std::uses_allocator type trait for std::promise.
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

。另请参阅。

Template:cpp/memory/dcl list uses allocator