Do not iterate over a STL set while erasing (all) elements... The set is stable over erasure, but if the iterator is pointing to the erased element we cannot do a "++". Increment first, erase after. |
||
---|---|---|
chamsin | ||
hurricane |
Do not iterate over a STL set while erasing (all) elements... The set is stable over erasure, but if the iterator is pointing to the erased element we cannot do a "++". Increment first, erase after. |
||
---|---|---|
chamsin | ||
hurricane |