std::uses_allocator<std::promise>

template< class R, class Alloc >
struct uses_allocator<std::promise<R>, Alloc> : std::true_type { };
(C++11 起)

std::promise 提供 std::uses_allocator 类型特性的特化。

目录

继承自 std::integral_constant

成员常量

value
[静态]
true
(公开静态成员常量)

成员函数

operator bool
转换对象为 bool ,返回 value
(公开成员函数)
operator()
(C++14)
返回 value
(公开成员函数)

成员类型

类型 定义
value_type bool
type std::integral_constant<bool, value>

参阅

检查指定的类型是否支持使用分配器的构造
(类模板)

版本历史

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