Transcription: You can write a function to be called automatically whenever the new operator cannot allocate the requested space. For example, the function may clean up memory by deleting objects no longer needed or it may simply print a message and terminate the program. In current and future C++ compilers, such a function is a handler for an exception thrown by the new operator.