class Test { private: int x; public: Test(int x=0) :x(x) {} int operator+(const Test& a) { return this->x+a.x; } friend int operator+(const Test& a,const Test& b) { return a.x + b.x; } };
Witam, chciałbym się dowiedzieć czy jest jakaś różnica pomiędzy funkcją zaprzyjaźnioną a metodą względem wydajności.