【发布时间】:2013-04-05 13:29:08
【问题描述】:
是
std::vector<double> foo ()
{
std::vector<double> t;
...
return t;
}
和
std::vector<double> foo ()
{
std::vector<double> t;
...
return std::move (t);
}
等价的?
更准确地说,return x 是否总是等价于return std::move (x)?
【问题讨论】:
标签: c++ move-semantics