Iterators provide an easy way of cycling through the elements of a singly linked list.
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.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.