Iterator - Dictionary Definition and Overview

Iterator : 

An object or routine for accessing items from a list, array or stream one at a time.

By extension, the term can be used for an object or routine for accesing items from any data structure that can be viewed as a list. For example, a traverser is an iterator for tree-shaped data structures.

(2001-10-04)



Example Usage of Iterator

alexfilatov: @real7a Думаю, все с неё и началось, i - Iterator
mikio1978: ダブルディスパッチしてないからvisitorという呼称を使っていても厳密にはvisitorパターンと言えないんだけど、でも繰り返しでないものにIteratorとつけたくないし、Iteratorパターンの中でさらにIteratorを呼ぶのもかえって混乱するので、現状のままでいいや。
sscrisk: #include して forward_Iterator_archetype のオブジェクトを ForwardIterator を受け取る関数へ渡せば,チェックできるようだ。おおお。
Copyright 2009 wordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us