std::uncaught_exception

std::uncaught_exception, std::uncaught_exceptions

Defined in header <exception>
bool uncaught_exception();
(1) (deprecated in C++17)
int uncaught_exceptions();
(2) (since C++17)
1) Detects if the current thread has a live exception object, that is, an exception has been thrown or rethrown and not yet entered a matching catch clause, std::terminate or 登录查看完整内容