123456789101112
Iter1 = mList.begin(); do { if(*Iter1 == m_bAge) { //do code mList.erase(m_bAge) } Iter1++; } while(Iter1 != mList.end())
1234567
while(Iter1 != mList.end()) { if(*Iter1 == m_bAge) Iter1 = mList.erase(Iter1); else ++Iter1; }