There is such code: #include &开发者_StackOverflow社区lt;iostream> int main(){ for(;;){ int* ptr = new (std::nothrow) int;
What is the ideal usage开发者_开发问答 of std::nothrow?I\'d use it only as an optimization (or code simplification) when I would otherwise have put a try-catch block immediately around a use of regula