14
Passive Iteration
•During passive iteration, advancement is controlled by the operation itself.
•The passive iterator visits every element in the container. (It's designed for the common case.)
•Potentially more efficient than an active iterator, since the passive iterator knows that it is visiting all elements in sequence, and hence can visit elements in a way that takes advantage of the container’s representation.