std::nothrow

来源:互联网 发布:sql怎么用别名查询 编辑:程序博客网 时间:2024/05/21 17:23

std::nothrow 

说明:在内存不足时,new (std::nothrow)并不抛出异常,而是将指针置NULL。

用法:

auto s = new (std::nothrow) Camera3DTestScene();


解释:https://msdn.microsoft.com/zh-cn/library/49147z04.aspx

通俗版:http://blog.csdn.net/huyiyang2010/article/details/5984987

0 0