. operator= , " ":
item a(X);
item b;
item c;
c = b = a;
. operator= , , , .
EDIT Also, as mentioned above, the return value is often used in type expressions while (a = cin.get()) != 'q'). But you can also declare an operator like A operator=(const A&)(returns a copy) or const A& operator(const A&)(returns a link constant). I want to say that this operator can return anything, but the idiomatic way is to return a non-constant reference to itself.
source
share