36template <base::concepts::
integral T>
Definition of greatest_common_divisor function.
Definition of integral concept.
Definition of multiply_safely function.
constexpr auto least_common_multiple(T a, T b) -> T
Calculate the least common multiple.
constexpr auto multiply_safely(T a, T b) -> T
Multiply two integers with check of overflow.
constexpr auto greatest_common_divisor(T a, T b) -> T
Calculate the greatest common divisor.