Propagator is an int, sorry should have said previously
Edit: I tweaked it, and now it works! It will however only delete one instance of propagator, is there anyway to run this as many times as needed to delete all instance of propagator?
> I tweaked it, and now it works! It will however only delete one instance of propagator
show updated code.
http://www.cplusplus.com/forum/general/129501/#msg699308
Suppose that you've got {&, &, *, *, &} where '*' indicates sets to be erased.
when j=2, you find the first *, and erase it. The resultant vector is {&, &, *, &}
you then increment j, so j=3, find an & and continue.