Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Iterators

Iterators provide an easy way of cycling through the elements of a singly linked list, using the post increment operator++. They avoid the need to access the inner detail of link objects and list headers.

An iterator is an instance of the templated class TSglQueIter<class T>. The class provides the behaviour for moving through the elements of a specific list. An iterator maintains a pointer to the current element in the list. The current element can be any element in the list.