I'm just learning STL and reverse_iterator has me confused. 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 there is no point to this usage and it can easily cause a crash, so why is the default constructor allowed to be used?