Template Function ADS::hanoi_iterative_labels

Function Documentation

template<class F>
void ADS::hanoi_iterative_labels(int n, int source, int dest, int middle, F &&f)

the second hanoi-iterative(): the systematic rules, saving on the stack the parameters and the label from which the call resumes

Pre:

n >= 1 and source, dest and middle distinct