das*_*fex 1 c++ pointers exception new-operator nothrow
如果我使用new并获取std::bad_alloc编译器,则不会因为异常而调用构造函数。但是它是如何处理nothrow new我们在每种情况下都得到指针的原因的呢?本案标准中是否有特殊段落?
new
std::bad_alloc
nothrow new
Igo*_*nik 5
[expr.new]/16 ...如果分配函数返回null,则不进行初始化,不调用deallocation函数,new-expression的值为null。
归档时间:
5 年,5 月 前
查看次数:
62 次
最近记录: