Is it useless to declare a local variable as rvalue-reference, e.g. T&& r = move(v)?

前端 未结 0 1708
感动是毒
感动是毒 2021-02-11 20:00

Could you guys give me an illustrative example under certain circumstance to prove the following statements are useful and necessary?

AnyTypeMovable   v;
AnyType         


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