私が機能を持っているとしましょう
std::Vector<Point> calculate() {
std::Vector<Point> points; //do stuff with points
return points;
}
と
void calculate(std::Vector<Point>& points) {
//do stuff with points
}
したがって、私の質問はスタックで初期化されたオブジェクトに固有であり、stlオブジェクトです。パフォーマンスに違いはありますか、そしてそれを行うための一般的な方法は何ですか
よろしく