は
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)
は
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)