std::vector::iterator iter;
for(iter = m_list.begin(); iter != m_list.end(); )
{
if((*iter) == 2)
{
iter = m_list.erase(iter);
}
else
{
++iter;
}
}
std::vector::iterator iter;
for(iter = m_list.begin(); iter != m_list.end(); )
{
if((*iter) == 2)
{
iter = m_list.erase(iter);
}
else
{
++iter;
}
}