File indexing completed on 2026-05-03 08:13:26
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef _LIBCPP___CXX03___EXCEPTION_OPERATIONS_H
0010 #define _LIBCPP___CXX03___EXCEPTION_OPERATIONS_H
0011
0012 #include <__cxx03/__config>
0013 #include <__cxx03/cstddef>
0014
0015 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0016 # pragma GCC system_header
0017 #endif
0018
0019 namespace std {
0020 #if _LIBCPP_STD_VER <= 14 || defined(_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS) || \
0021 defined(_LIBCPP_BUILDING_LIBRARY)
0022 using unexpected_handler = void (*)();
0023 _LIBCPP_EXPORTED_FROM_ABI unexpected_handler set_unexpected(unexpected_handler) _NOEXCEPT;
0024 _LIBCPP_EXPORTED_FROM_ABI unexpected_handler get_unexpected() _NOEXCEPT;
0025 _LIBCPP_NORETURN _LIBCPP_EXPORTED_FROM_ABI void unexpected();
0026 #endif
0027
0028 using terminate_handler = void (*)();
0029 _LIBCPP_EXPORTED_FROM_ABI terminate_handler set_terminate(terminate_handler) _NOEXCEPT;
0030 _LIBCPP_EXPORTED_FROM_ABI terminate_handler get_terminate() _NOEXCEPT;
0031
0032 _LIBCPP_EXPORTED_FROM_ABI bool uncaught_exception() _NOEXCEPT;
0033 _LIBCPP_EXPORTED_FROM_ABI int uncaught_exceptions() _NOEXCEPT;
0034
0035 class _LIBCPP_EXPORTED_FROM_ABI exception_ptr;
0036
0037 _LIBCPP_EXPORTED_FROM_ABI exception_ptr current_exception() _NOEXCEPT;
0038 _LIBCPP_NORETURN _LIBCPP_EXPORTED_FROM_ABI void rethrow_exception(exception_ptr);
0039 }
0040
0041 #endif