标签: c++ performance c++11 vector iteration
哪一个在std :: vector迭代方面表现更好:新引入的C ++ 11 for (auto &x: some_vector)或for (vector<type>::iterator it=some_vector.begin(); it != some_vector.end(); it++)方法?
for (auto &x: some_vector)
for (vector<type>::iterator it=some_vector.begin(); it != some_vector.end(); it++)