Erasing elements in a multimap while iterating

Is it safe to erase the iterator pointer from the table before incrementing the iterator?

No, erase will invalidate the iterator and you shouldn't increment it after that.

To do this properly, make use of the return value of erase - the iterator following the last removed element:

std::multimap<int, int> m;

for (auto it = m.begin(); it != m.end(); ) {
   if (condition)
       it = m.erase(it);
   else
       ++it;
}

In C++03, erase returns nothing, so you have to do this manualy by saving a copy of the iterator and incrementing it before you erase the original:

std::multimap<int, int> m;
typedef std::multimap<int, int>::iterator Iter;¸

for (Iter it = m.begin(); it != m.end(); ) {
   if ( /* some condition */ ) {
       Iter save = it;
       ++save;
       m.erase(it);
       it = save;
   } else
       ++it;
}