Hey so i was hoping someone could help me understand how to go about implementing this class. I have to make this class called dlist, which makes a doubly linked list from an array of data or from a std container like vector, and has functions that work on it and an iterator class that can work with functions/algorithms from std library.
Im just really confused about how the iterator class works, like why're there a lot of duplicate functions inside class dlist and class iterator? Shouldnt there only be one definition for those functions? I just dont know how the relation between the 2 classes work and idk how to implement it. I know how a doubly linked list works though. Thanks in advance