34#pragma GCC system_header
40#define __glibcxx_want_uncaught_exceptions
41#define __glibcxx_want_constexpr_exceptions
42#define __glibcxx_want_exception_ptr_cast
47namespace std _GLIBCXX_VISIBILITY(default)
58 class bad_exception :
public exception
61 _GLIBCXX26_CONSTEXPR bad_exception() _GLIBCXX_USE_NOEXCEPT { }
63#if __cplusplus >= 202400L
64 constexpr virtual ~bad_exception() _GLIBCXX_TXN_SAFE_DYN
noexcept {}
66 constexpr virtual const char*
what()
const _GLIBCXX_TXN_SAFE_DYN
noexcept
68 return "std::bad_exception";
73 virtual ~bad_exception() _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_USE_NOEXCEPT;
77 what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_USE_NOEXCEPT;
87#if __cplusplus >= 201103L
94 void terminate() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__noreturn__,__cold__));
96#if __cplusplus < 201703L || (__cplusplus <= 202002L && _GLIBCXX_USE_DEPRECATED)
104 _GLIBCXX11_DEPRECATED
107#if __cplusplus >= 201103L
113 _GLIBCXX11_DEPRECATED
122 _GLIBCXX11_DEPRECATED
137 _GLIBCXX17_DEPRECATED_SUGGEST(
"std::uncaught_exceptions()")
140#ifdef __cpp_lib_uncaught_exceptions
145 int uncaught_exceptions() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
151namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
153_GLIBCXX_BEGIN_NAMESPACE_VERSION
173_GLIBCXX_END_NAMESPACE_VERSION
178#if __cplusplus >= 201103L
bool uncaught_exception() noexcept
unexpected_handler get_unexpected() noexcept
void(* terminate_handler)()
If you write a replacement terminate handler, it must be of this type.
terminate_handler get_terminate() noexcept
Return the current terminate handler.
unexpected_handler set_unexpected(unexpected_handler) noexcept
terminate_handler set_terminate(terminate_handler) noexcept
Takes a new handler function as an argument, returns the old function.
void terminate() noexcept
void(* unexpected_handler)()
If you write a replacement unexpected handler, it must be of this type.
void __verbose_terminate_handler()
A replacement for the standard terminate_handler which prints more information about the terminating ...
ISO C++ entities toplevel namespace is std.
GNU extensions for public use.
virtual const char * what() const noexcept