What is the difference between defining friend function inside the class or declaring inside and define outside of the class. Also why it is possible to place definition ins
Friend functions defined inside the class can only be looked up through ADL when called from outside the class. Functions defined outside of the class can be found even without ADL.