Template Function ADS::forEachCombination

Function Documentation

template<class F>
long ADS::forEachCombination(int n, int t, F &&visit)

the increasing t-tuples of [ 0 , n ) in lexicographic order, visit( c ) on each, c a const std::vector< int > of size t

Pre:

0 <= t <= n