Template Function ADS::forEachPermutation

Function Documentation

template<class T, class F>
long ADS::forEachPermutation(std::vector<T> &a, F &&visit)

the n! arrangements of a by Heap’s method, visit( a ) on each