This commit is contained in:
2025-10-25 03:02:53 +03:00
commit 043225d523
3416 changed files with 681196 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
[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)