I know I can iterate through a vector using:

for(vector::size_type i = 0; i < vec.size(); i++){
cout << vec[i];
}
(vec is the name of the vector)

I also know that I can use an iterator to go through the vector. My question is: which one is more efficient?