std::nothrow

173 阅读1分钟

std::nothrow

在内存分配失败时会返回一个nullptr,而不是触发std::bad_alloc