Returning a c++ std::vector without a copy?

后端 未结 3 1807
伪装坚强ぢ
伪装坚强ぢ 2020-12-29 03:48

Is it possible to return a standard container from a function without making a copy?

Example code:

std::vector MyFunc();

...

std::vector&l         


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