21
Language support library
[language.support]
21.8
Exception handling
[support.exception]
21.8.5
uncaught_exceptions
[uncaught.exceptions]
int uncaught_exceptions() noexcept;
1
#
Returns:
The number of uncaught exceptions (
[except.uncaught]
)
.
2
#
Remarks:
When
uncaught_exceptions() > 0
, throwing an exception can result in a call of
std::terminate()
(
[except.terminate]
)
.