Which function is invoked when new memory allocation fails in C++?

Explanation:

bad_alloc exception is thrown when new cannot allocate memory.

Explore more in Computer Science: