Debian Codegraph @

third-party/boost-math/include/boost/math/tools/nothrow.hpp

raw
1 // (C) Copyright Antony Polukhin 2022.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #ifndef BOOST_MATH_TOOLS_NOTHROW_HPP
7 #define BOOST_MATH_TOOLS_NOTHROW_HPP
8
9 #include <boost/math/tools/is_standalone.hpp>
10
11 #ifndef BOOST_MATH_STANDALONE
12
13 #include <boost/config.hpp>
14
15 #define BOOST_MATH_NOTHROW BOOST_NOEXCEPT_OR_NOTHROW
16
17 #else // Standalone mode - use noexcept or throw()
18
19 #if __cplusplus >= 201103L
20 #define BOOST_MATH_NOTHROW noexcept
21 #else
22 #define BOOST_MATH_NOTHROW throw()
23 #endif
24
25 #endif
26
27 #endif // BOOST_MATH_TOOLS_NOTHROW_HPP