Return value optimization of values unpacked from std::tuple

Are there any compilers capable of performing return value optimization on multiple values returned from a function through std::tuple? To be clear, in the following code, are there any compilers capable of avoiding unnecessary copies?

std::vector<int> a;
std::list<float> b;
std::tie(a,b) = myFunctionThatReturnsAVectorAndList();

It's not worth worrying anymore. If the compiler cannot perform RVO, move semantics will kick in.

链接地址: http://www.djcxy.com/p/50844.html

上一篇: SSRS:如何设置ParameterValue对象的多个值?

下一篇: 从std :: tuple中解压缩值的返回值优化