What is the purpose of std::nothrow when used with the new operator?
-
A
It disables exception handling globally
-
B
It makes new return nullptr instead of throwing std::bad_alloc on failure
-
C
It pre-allocates memory to avoid exceptions
-
D
It throws a custom exception on allocation failure