std::experimental::gcd

Header: <experimental/numeric>

Computes the greatest common divisor of the integers m and n.

# Declarations

template< class M, class N>
constexpr std::common_type_t<M, N> gcd( M m, N n );

(library fundamentals TS v2)

# Parameters

# Return value

If both m and n are zero, returns zero. Otherwise, returns the greatest common divisor of |m| and |n|.

# See also