Google News
logo
CPP - Interview Questions
Difference between an external iterator and an internal iterator? Describe an advantage of the External 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.
Advertisement