Introduction to OOP Chapter 19: Container Classes : next previous audio real text

An Iterator Loop in C++

		// create starting and stopping iterators
	list::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
	}
Interface consists of three operations; comparison, increment, and dereference.
Intro OOP, Chapter 19, Slide 16