Advertisement - Continue reading below

Definition of "iterator" [iterator]

  • One which iterates. (noun)
  • A method capable of performing the same action on every item in a collection. (noun)

Wiktionary.org : Text is available under the Creative Commons Attribution-ShareAlike License

Use "iterator" in a sentence
  • "With the new iterator, the above code would rather give you the actual properties in the bag, since the __iterator__ yields all keys in this. mData."
  • "Although it does remind me of the (unrelated) differences in std:: lower_bound overloads for when the iterator is a random access iterator vs only a forward iterator."
  • "The function it returns (the iterator deps ()), does now almost exactly what the recursive version was doing, the only difference is that it now also manages the array of packages to visit (and of course it doesn't recurse itself, the iteration is managed in the main program by calling the iterator in a while loop)."