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


uncaught_exception

function
<exception>
bool uncaught_exception() throw();

Return exception status

Returns true if an exception has been thrown but the initialization of the exception declaration in the matching handler (or unexpected) is not yet complete.

Returns false in all other cases, including when entering terminate for any reason other than a explicit call from the program.

Throwing another exception while this function returns true may result in the termination of the exception handling proccess (a call to terminate).

Return value

true if an exception has been thrown and has not yet been caught by its appropriate handler.
false otherwise.

See also