L
lallous
Hello
Given this:
list<mystruct_t> lst;
lst.push_back(item1);
lst.push_back(item2);
lst.push_back(item3);
Now say I have this:
mystruct_t *p1, *p2, *p3 pointing to item1->item3 memory in side the list.
If I delete "item2" (or second item) will the other pointers still be valid?
Given this:
list<mystruct_t> lst;
lst.push_back(item1);
lst.push_back(item2);
lst.push_back(item3);
Now say I have this:
mystruct_t *p1, *p2, *p3 pointing to item1->item3 memory in side the list.
If I delete "item2" (or second item) will the other pointers still be valid?