chsvlib
chsv helper source code
gcd_value< params > Struct Template Reference

Calculates the greatest common divisor of multiply template arguments at a compile time. More...

Detailed Description

template<unsigned... params>
struct Chusov::Math::gcd_value< params >

Calculates the greatest common divisor of multiply template arguments at a compile time.

Template Parameters
params...is a pack of unsigned integrals, for which the greatest common divisor is calculated. At least two parameters must be specified.

The resulting value is assigned to a value member at a compile time. The calculation is based on a recursive form of the Euclidean algorithm.

Usage:

Calculates the greatest common divisor of multiply template arguments at a compile time.
Definition: chsvmath.h:586

The documentation for this struct was generated from the following file: