Files
2025-10-25 03:02:53 +03:00

26 lines
917 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[uncaught.exceptions]
# 17 Language support library [[support]](./#support)
## 17.9 Exception handling [[support.exception]](support.exception#uncaught.exceptions)
### 17.9.6 uncaught_exceptions [uncaught.exceptions]
[🔗](#lib:uncaught_exceptions)
`constexpr int uncaught_exceptions() noexcept;
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4102)
*Returns*: The number of uncaught exceptions ([[except.throw]](except.throw "14.2Throwing an exception")) in the current thread[.](#1.sentence-1)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4106)
*Remarks*: When uncaught_exceptions() > 0,
throwing an exception can result in a call of the function[std::terminate](except.terminate "14.6.2The std::terminate function[except.terminate]")[.](#2.sentence-1)