从C++ 11标准(15.1.p4):
除非在3.7.4.1中指出,否则异常对象的内存以未指定的方式分配
如果分配失败怎么办 - 它会抛出std::bad_alloc吗?打电话std::terminate?未指定?
std::bad_alloc
std::terminate
c++ c++11
c++ ×1
c++11 ×1