Line asking

template <class generic>
SListIterator<generic>::SListIterator (SNode<generic> * x) : m_current (x)

what is that link asking. its asking me to start the linking or just traversing the list like,

Slist<char> s;
Slist<char>::Iteratori;
...
for (i= s.begin(); i!= s.end(); i++)
{
cout<< *i<< endl;


I am not sure about iterators
That line is the first two lines of the implementation of
SListIterator<generic>'s constructor which takes a
pointer to an SNode<generic> as a parameter and
initializes SListIterator's m_current data member
with the value of x.
Topic archived. No new replies allowed.