Home > Software engineering >  List the erase error
List the erase error

Time:11-22

The execution of the remove (* p), p iterator for the custom structure, also an error to erase, vc6 compiler to remove function inside the if (* f==v),==rewritten, the only key to id, a great god answer, please. Thanks

CodePudding user response:

Example
IntList: : iterator it;
It=the find (lBreakPoint. The begin (), lBreakPoint. The end (), point);

If (it!=lBreakPoint. End ())//set the breakpoint line if this behavior is to delete or add
{
LBreakPoint. Erase (it);
}
The else
{
LBreakPoint. Push_back (point);
}

CodePudding user response:

IntList: : iterator it;
It=the find (lBreakPoint. The begin (), lBreakPoint. The end (), point);

If (it!=lBreakPoint. End ())//set the breakpoint line if this behavior is to delete or add
{
LBreakPoint. Remove (it);
}
The else
{
LBreakPoint. Push_front (point);
}

Is such a thing
  • Related