37template <base::concepts::
integral T>
40 "greatest_common_divisor requires positive integers.");
43 if (x ==
static_cast<T
>(0)) {
Definition of exceptions.
Definition of integral concept.
Definition of macros for logging.
constexpr auto greatest_common_divisor(T a, T b) -> T
Calculate the greatest common divisor.
Definition of NUM_COLLECT_PRECONDITION macro.
#define NUM_COLLECT_PRECONDITION(CONDITION,...)
Check whether a precondition is satisfied and throw an exception if not.