S
Steve Edwards
Hi,
After making an iterator to a map and stepping through a loop, I want to
delete any entries that satisfy a test from an external function.
MyMapType::const_iterator iter;
for(iter = m->begin(); iter != m->end(); ++iter)
{
a = iter->first;
b = iter->second;
if ( Test(a,b) == true)
iter->delete?();
}
How do I actually delete the element that iter is pointing to?
Thanks
Steve
After making an iterator to a map and stepping through a loop, I want to
delete any entries that satisfy a test from an external function.
MyMapType::const_iterator iter;
for(iter = m->begin(); iter != m->end(); ++iter)
{
a = iter->first;
b = iter->second;
if ( Test(a,b) == true)
iter->delete?();
}
How do I actually delete the element that iter is pointing to?
Thanks
Steve