Defined in header
Makes f the new global terminate handler function and returns the previously installed std::terminate_handler. f shall terminate execution of the program without returning to its caller, otherwise the behavior is undefined.
|f||-||pointer to function of type std::terminate_handler, or null pointer|
 Return value
The previously-installed terminate handler, or a null pointer value if none was installed.
Unhandled exception bash: line 7: 7743 Aborted (core dumped) ./a.out
 See also
| function called when exception handling fails |
| obtains the current terminate_handler |
| the type of the function called by std::terminate |