K
khalid302
I'm writing a multi-threaded application where one thread waits for a
certain std::set element to be deleted by another thread.
The waiting thread already has an iterator pointing at the element
that has to be deleted. After the other thread deletes this element,
the iterator will become invalid.
Is there a way to know if a certain iterator is invalid ?
certain std::set element to be deleted by another thread.
The waiting thread already has an iterator pointing at the element
that has to be deleted. After the other thread deletes this element,
the iterator will become invalid.
Is there a way to know if a certain iterator is invalid ?