2
0
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:
Matt Borland
2021-07-23 22:03:31 +03:00
parent f8d2ff8770
commit 98b0cf1f11
4 changed files with 10 additions and 25 deletions

View File

@@ -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]

View File

@@ -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

View File

@@ -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

View File

@@ -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