Path: blob/main/contrib/llvm-project/libcxx/include/__cxx03/__exception/operations.h
213799 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef _LIBCPP___CXX03___EXCEPTION_OPERATIONS_H9#define _LIBCPP___CXX03___EXCEPTION_OPERATIONS_H1011#include <__cxx03/__config>12#include <__cxx03/cstddef>1314#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)15# pragma GCC system_header16#endif1718namespace std { // purposefully not using versioning namespace19using unexpected_handler = void (*)();20_LIBCPP_EXPORTED_FROM_ABI unexpected_handler set_unexpected(unexpected_handler) _NOEXCEPT;21_LIBCPP_EXPORTED_FROM_ABI unexpected_handler get_unexpected() _NOEXCEPT;22_LIBCPP_NORETURN _LIBCPP_EXPORTED_FROM_ABI void unexpected();2324using terminate_handler = void (*)();25_LIBCPP_EXPORTED_FROM_ABI terminate_handler set_terminate(terminate_handler) _NOEXCEPT;26_LIBCPP_EXPORTED_FROM_ABI terminate_handler get_terminate() _NOEXCEPT;2728_LIBCPP_EXPORTED_FROM_ABI bool uncaught_exception() _NOEXCEPT;29_LIBCPP_EXPORTED_FROM_ABI int uncaught_exceptions() _NOEXCEPT;3031class _LIBCPP_EXPORTED_FROM_ABI exception_ptr;3233_LIBCPP_EXPORTED_FROM_ABI exception_ptr current_exception() _NOEXCEPT;34_LIBCPP_NORETURN _LIBCPP_EXPORTED_FROM_ABI void rethrow_exception(exception_ptr);35} // namespace std3637#endif // _LIBCPP___CXX03___EXCEPTION_OPERATIONS_H383940