std::allocator_arg

定义于头文件 <memory>
constexpr std::allocator_arg_t allocator_arg = std::allocator_arg_t();
(C++11 起)
(C++17 前)
inline constexpr std::allocator_arg_t allocator_arg = std::allocator_arg_t();
(C++17 起)

std::allocator_argstd::allocator_arg_t 类型常量,用于在调用点消歧义具分配器对象,例如 std::tuplestd::functionstd::promisestd::packaged_task 的构造函数及成员函数的重载。

参阅

标签类型,用于选择分配器感知的构造函数重载
(类)
检查指定的类型是否支持使用分配器的构造
(类模板)

版本历史

  • (当前 | 先前 2017年5月29日 (一) 03:31Fruderica讨论 | 贡献. . (747字节) (-440). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 09:01P12bot讨论 | 贡献 . . (1,187字节) (-74). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 16:53P12bot讨论 | 贡献 . . (1,261字节) (+257). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月27日 (六) 03:24P12讨论 | 贡献 . . (1,004字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 06:00TranslationBot讨论 | 贡献. . (1,004字节) (-10). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月25日 (四) 14:09P12讨论 | 贡献 . . (1,014字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (1,014字节) (+1,014). . (Translated from the English version using Google Translate)