Difference between an external iterator and an internal iterator - An internal iterator is implemented by the member functions of the class which has the iteration logic. - An external iterator is implemented by a separate class which can be attached to the object which has iteration logic. - The advantage of external iterator is that, many iterators can be made active simultaneously on the existing or same object.
|