I'm implementing a Binary Search Tree and I need to write my own iterator in order to move from a Node to another. I need to implement also a constant version of the iterator.
For instance, I need to implement a member function begin that returns an iterator to the leftmost node of the tree.
In particular, it's written in the notes from my teacher to implement the following functions:
Thanks @FerryGuy. So it's just just for readability.
So, the third function must be called when we know a-priori that the object is const-qualified, while the second one is just an overloading of the original iterator begin(); so that I can call begin both on const and non-const-qualified objects