首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::nothrow_t

Defined in header <new>

?

?

struct nothrow_t {};

?

(until C++17)

struct nothrow_t { explicit nothrow_t() = default; };

?

(since C++17)

std::nothrow_t是一个空类类型,用于消除抛出和非抛出的重载的歧义。分配函数...

另见

nothrow

an object of type nothrow_t used to select an non-throwing allocation function (constant)

operator newoperator new[]

allocation functions (function)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com