Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Synopsis
PrevUpHomeNext
namespace boost
{
namespace math
{

template < typename IntegerType >
   class gcd_evaluator;
template < typename IntegerType >
   class lcm_evaluator;

template < typename IntegerType >
   IntegerType  gcd( IntegerType const &a, IntegerType const &b );
template < typename IntegerType >
   IntegerType  lcm( IntegerType const &a, IntegerType const &b );

typedef see-below static_gcd_type;

template < static_gcd_type Value1, static_gcd_type Value2 >
   struct static_gcd;
template < static_gcd_type Value1, static_gcd_type Value2 >
   struct static_lcm;

}
}

PrevUpHomeNext