Template Function ADS::subsets

Function Documentation

template<class F>
long ADS::subsets(int n, int k, F &&f)

the subsets of k of the items 0 , … , n - 1, as vectors of n booleans; f( S ) returns true to stop

Pre:

n , k >= 0