Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
Miscellaneous
complex
exception
functional
iterator
limits
locale
memory
new
numeric
stdexcept
typeinfo
utility
valarray
exception
bad_exception
exception
set_terminate
set_unexpected
terminate
terminate_handler
uncaught_exception
unexpected
unexpected_handler


terminate

function
<exception>
void terminate();

Function handling termination on exception

Function automatically called when the exception handling process has to be abandoned for some circumstance that makes impossible to continue with it.

The function calls the current terminate handler function (either the one by default or the one set by a call to set_terminate).

The terminate handler by default simply calls abort.

This function is provided so that it can be explicitly called by a program.

Return value

none

See also