As a C++ newbie so far, my experience with overloading has been limited to copy, move assignment operators and well as I/O stream operators.
I now have to create a iterator for a parse tree node class, which means I have to overloading the following:
- ==
- *(dereference operator)
- ++
- --
- >=
I have been scouring the internet as well as several C++ books , but so far I nothing suitable to my particular case ( i.e. without reference to templates), however I have learn that the increment and decrement operators need to overloaded "twice" for both the postfix and prefix case
Could someone please explain how one would do this as well as the reasoning behind
Thank you :)
I apologise if it am being off topic.