Hi Kalaky,
#1. Please do not cross post to GCC-help and GCC lists.
#2. GCC@gcc.gnu.org is not an appropriate forum for your question.
#3. [EMAIL PROTECTED] is not an appropriate forum for your question.
#4. Your question is a general C++ question, not a GCC question.
> Given that removing/
Hi,
Given that removing/inserting elements from a map/slist/whatever does
not invalidate iterators to list elements, it is safe to use the
element that the iterator "points" to ?
For example:
slist list;
thread A:
lock();
list.insert_after(list.begin(), elem);
unlock();
thread B:
lock();
co