vector<T> output; vector<U> V; for( auto v: V) output.push_back(f(v));
VS
for(int i =0; i < V.size(); ++i) output.push_back(f(V[i]));
如果不是矢量但地图等等呢?