| 18 | fraction<T> operator *(const fraction<T>& other) const { |
| 19 | return fraction<T>(n * other.n, d * other.d); } |
| 20 | fraction<T> operator /(const fraction<T>& other) const { |
| 21 | return fraction<T>(n * other.d, d * other.n); } |
| 22 | bool operator <(const fraction<T>& other) const { |
| 23 | return n * other.d < other.n * d; } |
| 24 | bool operator <=(const fraction<T>& other) const { |
nothing calls this directly
no outgoing calls
no test coverage detected