In modern C++ these loops could alternatively be written as:
std::vector<int> myVec;
for( auto it = myVec.begin(); it != myVec.end(); ++it );
or if you prefer the external begin/end syntax: for( auto it = std::begin(myVec); it != std::end(myVec); ++it );
or the most succinct (replace && by & if writing): for( auto && item : myVec );