C ++ 11更快的std :: vector迭代

时间:2014-04-02 03:01:21

标签: 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++)方法?

0 个答案:

没有答案