- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
for (std::vector<SomeClass::SmartPtr>::iterator i = candidates.begin ();
i != candidates.end (); )
{
if ((*i)->getArea ().intersect (thisArea))
{
// label is inside the area.
++i;
}
else
{
// label must be removed
std::iter_swap (i, candidates.end () - 1);
candidates.pop_back ();
}
}