I'm just learning STL, and reverse_iterator bothers me. It has a default constructor, but I donβt understand how to use it. I tried:
reverse_iterator<int*> r{}; r --;
and the program crashed. I believe that there is no point in this use, and this can lead to a crash, so why is the default constructor allowed for use?
source share