TSglQueIter<class T>
To create an iterator for a singly linked list of
CAnyClass
objects, create a TSglQueIter
object:
TSglQueIter<CAnyClass> iIter(queHeader);
The constructor needs a reference to a singly linked list header whether or not the list has any items in it:
TSglQue<CAnyClass> queHeader(_FOFF(CAnyClass,link));
The CAnyClass
class contains a declaration for the
link object at a suitable point.
class CAnyClass : CBase
{
//... class members
TSglQueLink iLink;
//... class members
};