asked 84.8k views
2 votes
What is an iterator and why is it useful for ADTs?

asked
User Floribon
by
8.6k points

1 Answer

6 votes

Answer:

Iterator is the element that used for transversing of any container by the user. This provides the facility to user to process any constituent belonging to the container and storage of these elements can be in any form.

This situation takes place under the isolation condition of the user from the container's internal model. Abstract data types use iterators for the maintenance of the transversal of the data structure.

answered
User George Miller
by
7.8k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.