From 32a41b1abe1a4aab0892c9c2051be6ba5b379f1e Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 11 May 2020 22:17:58 +0200 Subject: New upstream version 2.2.0~rc1+repack --- .../math/doc/html/math_toolkit/compile_time.html | 106 --------------------- 1 file changed, 106 deletions(-) delete mode 100644 boost/libs/math/doc/html/math_toolkit/compile_time.html (limited to 'boost/libs/math/doc/html/math_toolkit/compile_time.html') diff --git a/boost/libs/math/doc/html/math_toolkit/compile_time.html b/boost/libs/math/doc/html/math_toolkit/compile_time.html deleted file mode 100644 index b9021064..00000000 --- a/boost/libs/math/doc/html/math_toolkit/compile_time.html +++ /dev/null @@ -1,106 +0,0 @@ - - - -Compile-time GCD and LCM determination - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Header: <boost/math/common_factor_ct.hpp> -

-
typedef unspecified static_gcd_type;
-
-template < static_gcd_type Value1, static_gcd_type Value2 >
-struct boost::math::static_gcd : public mpl::integral_c<static_gcd_type, implementation_defined>
-{
-};
-
-template < static_gcd_type Value1, static_gcd_type Value2 >
-struct boost::math::static_lcm : public mpl::integral_c<static_gcd_type, implementation_defined>
-{
-};
-
-

- The type static_gcd_type is - the widest unsigned-integer-type that is supported for use in integral-constant-expressions - by the compiler. Usually this the same type as boost::uintmax_t, - but may fall back to being unsigned - long for some older compilers. -

-

- The boost::math::static_gcd and boost::math::static_lcm class templates take - two value-based template parameters of the static_gcd_type - type and inherit from the type boost::mpl::integral_c. Inherited from the base class, - they have a member value that is the greatest common factor - or least common multiple, respectively, of the template arguments. A compile-time - error will occur if the least common multiple is beyond the range of static_gcd_type. -

-

- - Example -

-
#include <boost/math/common_factor.hpp>
-#include <algorithm>
-#include <iterator>
-#include <iostream>
-
-int main()
-{
-   using std::cout;
-   using std::endl;
-
-   cout << "The GCD and LCM of 6 and 15 are "
-   << boost::math::gcd(6, 15) << " and "
-   << boost::math::lcm(6, 15) << ", respectively."
-   << endl;
-
-   cout << "The GCD and LCM of 8 and 9 are "
-   << boost::math::static_gcd<8, 9>::value
-   << " and "
-   << boost::math::static_lcm<8, 9>::value
-   << ", respectively." << endl;
-
-   int  a[] = { 4, 5, 6 }, b[] = { 7, 8, 9 }, c[3];
-   std::transform( a, a + 3, b, c, boost::math::gcd_evaluator<int>() );
-   std::copy( c, c + 3, std::ostream_iterator<int>(cout, " ") );
-}
-
-
- - - -
-
-
-PrevUpHomeNext -
- - -- cgit v1.2.3