In C++, the default (non-placement) operator new never returns nullptr when memory allocation fails. Instead, it throws a std::bad_alloc exception.
operator new
nullptr
std::bad_alloc
If you explicitly want new to return nullptr on allocation failure, you must use seemore
new
seemore