CodePudding user response:
ExampleIntList: : 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