hi all:<br> WTF::Hashmap::iterator uses WTF::HashTable::iterator as its m_impl. <br>When you call 'remove( oldIter )', the current 'iter' may be changed. And<br>it's not about memory reallocation or element shift, but it's because the<br>
member variable 'm_table' in WTF::HashTable::iterator may become NULL<br>if there is only one entry in the HashMap before you call remove( olditer ).<br><br> So, how can I delete an element of a HashMap when I traversing the <br>
container? e.x.<br><br>while( iter ) {<br> oldIt = iter;<br> ++iter;<br> remove( oldIT ); // not always safe<br>}<br><br>thx<br>