阅读背景:

如何从函数返回向量引用?

来源:互联网 

I am trying to return a vector from a function. But if I return the whole vector, then the copying process would take extra time, so I am trying to return a reference to the vector only. How do I do that in C++ ? here's my current function,I am trying to return a vector from a function.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: