File indexing completed on 2025-01-18 09:40:41
0001
0002
0003
0004
0005
0006 #ifndef BOOST_MATH_TOOLS_REAL_CAST_HPP
0007 #define BOOST_MATH_TOOLS_REAL_CAST_HPP
0008
0009 #include <boost/math/tools/config.hpp>
0010
0011 #ifdef _MSC_VER
0012 #pragma once
0013 #endif
0014
0015 namespace boost{ namespace math
0016 {
0017 namespace tools
0018 {
0019 template <class To, class T>
0020 inline constexpr To real_cast(T t) noexcept(BOOST_MATH_IS_FLOAT(T) && BOOST_MATH_IS_FLOAT(To))
0021 {
0022 return static_cast<To>(t);
0023 }
0024 }
0025 }
0026 }
0027
0028 #endif
0029
0030
0031