This question is about iterators. I declare an iterator in a code and use it for printing some conatiner class object like a list for example. Then I change the list by moving its first element to the back. Next I want to print the modified list object again using an iterator, do I need to declare a new iterator?
If I run it , in the place where I used the iterators second time the code doesnt print what its supposed to print, it prints empty lines, why is that happening?