I am new to C++ and I have a query:
"How in list all iterators and references unaffected after any operation"
I googled a lot and everywhere I found that in list iterators invalidation remains unaffected after any operation, so I just want to know what is the back end process that occurs when we perform some operation on list that doesn't create any impact on list iterators.
list<string> str;
str.push_back("One");
str.push_back("Two"); // So this doesn't affect the first iterator?
Some of the basics rules I referred are from this article: Iterator invalidation rules