1vector<string> &strs;2for(constauto &s : strs)3{4//do nothing;5} 可以替换为: 1vector<string>strs;2constvector<string>::iterator end_it =strs.end();34for(vector<string>::iterator it = strs.begin(); it != end_it; ++it)5{6conststring& s = *it;7//Some code here...8...