Why is a move assignment operator called with b = std::move(a) and a copy assingment operator called with b=a?

前端 未结 0 1328
借酒劲吻你
借酒劲吻你 2020-11-28 23:11

I\'m learning about constructors and copy assingment operators. I\'ve read this post: What is std::move(), and when should it be used?

I don\'t really understand why

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