std::nothrow_t

定义于头文件 <new>
struct nothrow_t {};
(C++17 前)
struct nothrow_t { explicit nothrow_t() = default; };
(C++17 起)

std::nothrow_t 是用于消歧义抛出与不抛出分配函数重载的空类类型。

参阅

用于选择不抛出分配函数nothrow_t 类型对象
(常量)
分配函数
(函数)

版本历史

  • (当前 | 先前 2017年5月17日 (三) 00:06Fruderica讨论 | 贡献. . (508字节) (-373). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 09:04P12bot讨论 | 贡献 . . (881字节) (-69). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 15:55P12bot讨论 | 贡献 . . (950字节) (+257). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月27日 (六) 03:26P12讨论 | 贡献 . . (693字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 06:00TranslationBot讨论 | 贡献. . (693字节) (-22). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月25日 (四) 14:09P12讨论 | 贡献 . . (715字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (715字节) (+715). . (Translated from the English version using Google Translate)