What is the benefit of overloading a member function based on whether the object is r-value reference or l-value? See details please

前端 未结 0 852
醉梦人生
醉梦人生 2020-12-09 11:01

I understand the following code, but just wondering what is the benefit of such a feature? I understand the performance benefit of a function argument taking a && -

相关标签:
回答
  • 消灭零回复
提交回复
热议问题