I am just learning C++ and came to know that iterators shouldn't be used when container is changed as it might gets invalidated but I just want to know is there anything in C++ standard which says under what situation iterators will get invalidated?
Thanks