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


unexpected

function
<exception>
void unexpected();

Function handling unexpected exceptions

Function automatically called when a function throws an exception that is not listed in its exception-specification (i.e., in its throw specifier).

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

The unexpected handler by default simply calls terminate.

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

Return value

none

See also