mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Doc fixes and convert to C++17 format [ci skip]
This commit is contained in:
@@ -9,14 +9,14 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
[heading Description]
|
||||
|
||||
Constexpr implementations of the functionality found in `<cmath>`. The following functions require C++11 or greater.
|
||||
Constexpr implementations of the functionality found in `<cmath>`. The following functions require C++17 or greater.
|
||||
|
||||
[heading Synopsis]
|
||||
|
||||
``
|
||||
#include <boost/math/ccmath/ccmath.hpp>
|
||||
``
|
||||
namespace boost { namspace math { namespace ccmath {
|
||||
namespace boost::math::ccmath {
|
||||
|
||||
template <typename T>
|
||||
inline constexpr bool isinf(T x);
|
||||
@@ -28,23 +28,8 @@ Constexpr implementations of the functionality found in `<cmath>`. The following
|
||||
inline constexpr Real sqrt(Real x);
|
||||
|
||||
template <typename Z>
|
||||
inline constexpr double sqrt(Real x);
|
||||
inline constexpr double sqrt(Z x);
|
||||
|
||||
}}} // Namespaces
|
||||
|
||||
[/
|
||||
[heading Description]
|
||||
|
||||
The following functions require C++14 or greater. Placeholder.
|
||||
|
||||
[heading Synopsis]
|
||||
|
||||
[heading Description]
|
||||
|
||||
The following functions require C++17 or greater. Placeholder.
|
||||
|
||||
[heading Synopsis]
|
||||
|
||||
]
|
||||
} // Namespaces
|
||||
|
||||
[endsect] [/section:ccmath Constexpr CMath]
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include <limits>
|
||||
|
||||
namespace boost { namespace math { namespace ccmath {
|
||||
namespace boost::math::ccmath {
|
||||
|
||||
template <typename T>
|
||||
inline constexpr bool isinf(T x)
|
||||
@@ -16,6 +16,6 @@ inline constexpr bool isinf(T x)
|
||||
return x == std::numeric_limits<T>::infinity() || -x == std::numeric_limits<T>::infinity();
|
||||
}
|
||||
|
||||
}}}
|
||||
}
|
||||
|
||||
#endif // BOOST_MATH_CCMATH_ISINF
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#ifndef BOOST_MATH_CCMATH_ISNAN
|
||||
#define BOOST_MATH_CCMATH_ISNAN
|
||||
|
||||
namespace boost { namespace math { namespace ccmath {
|
||||
namespace boost::math::ccmath {
|
||||
|
||||
template <typename T>
|
||||
inline constexpr bool isnan(T x)
|
||||
@@ -14,6 +14,6 @@ inline constexpr bool isnan(T x)
|
||||
return x != x;
|
||||
}
|
||||
|
||||
}}}
|
||||
}
|
||||
|
||||
#endif // BOOST_MATH_CCMATH_ISNAN
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <boost/math/ccmath/isnan.hpp>
|
||||
#include <boost/math/ccmath/isinf.hpp>
|
||||
|
||||
namespace boost { namespace math { namespace ccmath {
|
||||
namespace boost::math::ccmath {
|
||||
|
||||
namespace detail {
|
||||
|
||||
@@ -51,6 +51,6 @@ inline constexpr double sqrt(Z x)
|
||||
return detail::sqrt_impl<double>(static_cast<double>(x));
|
||||
}
|
||||
|
||||
}}} // Namespaces
|
||||
} // Namespaces
|
||||
|
||||
#endif // BOOST_MATH_CCMATH_SQRT
|
||||
|
||||
Reference in New Issue
Block a user