Template Function ADS::extractPositive

Function Documentation

template<Queue Q>
void ADS::extractPositive(Q &q, Q &out)

moves the positive items of q, in their order, to the back of out, leaving q empty

Pre:

q and out are distinct

Post:

q is empty