考虑以下代码:
example_t* a = new example_t[8];
class example_t有默认的ctor可以抛出,假设数组中第5个元素的构造抛出.是否有自动调用4个第一个元素的析构函数?这是一个定义明确的行为吗?
example_t
c++
c++ ×1