有如下代码:
struct qwq{ int x, y; qwq operator * (const node &tmp)const{ //略 } qwq operator / (const node &tmp)const{ } };
在调用 / 运算的时候,我想实现 / 左侧的数与 tmp 进行 * 运算。这在我保持 / 为成员函数的时候是否可能做到?
/
tmp
*
求大佬解答