Template Function ADS::copyPositive

Function Documentation

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

copies the positive items of q, in their order, to the back of out, leaving q as it was

Pre:

q and out are distinct

Post:

q is as it was (an audit)