Hello so I am working on implementing a list which would fall under the category of a quadruply linked list. I class defining the nodes, iterators and list:
So if I want to walk along the list in one direction I can simply define and iterator and set it equal to the beginning of the list. My question is this, how can I 'overload' my iterator definition so I can use the same instance of an iterator already defined in order to walk along the list in the other direction?
You don't have a list; there is no such thing as a quadruply linked list. Instead, you have a graph. It doesn't make sense to define iterators for a graph.