Are C++11 move semantics doing something new, or just making semantics clearer?

后端 未结 6 1074
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-01 04:29

I am basically trying to figure out, is the whole \"move semantics\" concept something brand new, or it is just making existing code simpler to implement? I am always interested

6条回答
  •  孤独总比滥情好
    2021-02-01 04:40

    No answer is complete without a reference to Thomas Becker's painstakingly exhaustive write up on rvalue references, perfect forwarding, reference collapsing and everything related to that.

    see here: http://thbecker.net/articles/rvalue_references/section_01.html

提交回复
热议问题