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