If i have:
std::list<int> mylist = { 3 };
auto it = mylist.begin();
but i start to do a lot of adds:
mylist.insert(it, 5); mylist.insert(it, 7);
is there any possibility that it
could be breaked? (for example, by realocation of the std::list
) what about push_back
? can this other function make a pointer invalid?