In some cases it is convenient define a function as a friend instead as a member.
Because a friend is activated in another way than a member: f(x,y) versus x.f(y).