Is there any difference if we define friend function inside or outside of class

前端 未结 6 1309
借酒劲吻你
借酒劲吻你 2020-12-10 16:09

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

6条回答
  •  醉酒成梦
    2020-12-10 16:29

    If you define it inside the class it's inline, if it's outside then it isn't.

提交回复
热议问题