Below the link where I see how iterator begin function works but not understand clearly.
https://secweb.cs.odu.edu/~zeil/cs361/web/website/Lectures/iterators/pages/implem.html
In their, I see begin function but don't understand how it works
Book::iterator Book::begin()
{
Book::iterator it;
it->pos = authors;
return it;
};
in this it
is object but in this it->
what is doing i think this overloaded with
operator->()
I think it work like a it.operator->().pos
but I don't know for sure
after that why it return it
my question is what is return it
does I'm not getting clear picture for this.