
3 May
2005
3 May
'05
7:36 a.m.
Dave Harris wrote:
No, I meant what I wrote. I usually have a suitable iterator typedef in scope. In the worst case it is more like:
typedef vector<ArbitrarilyComplexType> MyVec; for (MyVec::iterator i = vec.begin(); i != vec.end(); ++i) cout << *i;
But we sometimes have containers of boost::shared_ptr which then requires (*i)-> to access. BOOST_FOREACH simplifies these cases. Cheers Russell