Avoiding copy of objects with the “return” statement

前端 未结 7 2205
慢半拍i
慢半拍i 2020-11-27 16:16

I have a very basic question in C++. How to avoid copy when returning an object ?

Here is an example :

std::vector test(const uns         


        
7条回答
提交回复
热议问题