Subj : BC5.02 STL question To : borland.public.cpp.borlandcpp From : MarvinAvery Date : Mon May 31 2004 10:20 am Hi. I have an STL question and since I am using BC5.02, I thought I'd ask it here. I have a vector: vector stuff; I wish to traverse the vector. Which is better-- use an index: int i; for (i = 0; i < stuff.size(); i++) { --- do something with stuff[i] --- } Or use an iterator: vector::iterator i = stuff.begin(); while (i != stuff.end()) { --- do something with *i --- i++; } Or does it matter? TIA -- Marvin Avery marvin.avery@sdc-dsc.gc.ca .