The function
std::terminate (
[except.terminate])
is used by the exception
handling mechanism for coping with errors related to the exception handling
mechanism itself
. The function
std::uncaught_exceptions (
[uncaught.exceptions])
reports how many exceptions are uncaught in the current thread
. The function
std::current_exception (
[propagation]) and the class
std::nested_exception (
[except.nested]) can be used by a program to
capture the currently handled exception
.