Product

The product of two compile-time rational numbers.

@safe
template Product (
Lhs
Rhs
) if (
isRational!Lhs &&
isRational!Rhs
) {}

Examples

static assert(is(Product!(Rational!(3, 2u), Rational!(2, 3u)) == Rational!1));

Meta