Introduction to OOP | Chapter 19: Container Classes : | next | previous | audio | real | text |
// create starting and stopping iterators listInterface consists of three operations; comparison, increment, and dereference.::iterator start = aList.begin(); list ::iterator stop = aList.end(); // then do the loop for ( ; start != stop; start++ ) { string value = *start; // get the value // ... do something with the value }