I was wondering how can I erase an element of a vector while keeping the iterator?Here I am looping through vector of vectors of type int :
vector< vector<int> >::iterator row;
vector<int>::iterator col;
for (row = vvi.begin(); row != vvi.end(); row++) {
for (col = row->begin(); col != row->end(); col++) {
if(*col==55)
{
// col=row.erase(col); ?
}
}
}