void x_GC(void) { if ( m_SizeLimit ) { while ( size() > m_SizeLimit ) { m_Map.erase(m_RemoveList.front()); m_RemoveList.erase(m_RemoveList.begin()); } } }
void erase(iterator iter) { m_RemoveList.erase(iter.m_Iter->m_RemoveListIter); m_Map.erase(iter.m_Iter); }