1.
a * b
与函数调用
operator*(a,b)
是等价的。
2.
const Rational operator*(const Rational& lhs, const Rational& rhs);
你可以看到,left-hand operand(左手操作数)a 在函数内部以 lhs 的面目出现,而 right-hand operand(右手操作数)b 以 rhs 的面目出现。
对于 member functions(成员函数),left-hand argument(左手参数)表现为 this pointer(this 指针),所以有时候我单独使用 parameter name(参数名字) rhs。