
please wait
MyStack<T>
. I want to create an iterator so that I can iterate through my stack by doing something like this:for (StackIterator i = myStack.begin(); i != myStack.end(); i++)
|
|
container
is a pointer to the associated type and cur
is an index.