include/marathon/combination_generator.h
void reset() {
            // initialize
            for (j = 1; j <= k; j++)
                c[j] = j - 1;
            c[k + 1] = n;
            c[k + 2] = 0;

            // generate output
            for (size_t i = 1; i <= k; i++)
                dst[i - 1] = src[c[i]];
        }
/**
        * Reset the generator to its initial configuration.
        */
Reset the generator to its initial configuration.
Reset the generator to its initial configuration .
void reset() {
            for (j = 1; j <= k; j++)
                c[j] = j - 1;
            c[k + 1] = n;
            c[k + 2] = 0;
            for (size_t i = 1; i <= k; i++)
                dst[i - 1] = src[c[i]];
        }
void reset ( ) { for ( j = 1 ; j <= k ; j ++ ) c [ j ] = j - 1 ; c [ k + 1 ] = n ; c [ k + 2 ] = 0 ; for ( size_t i = 1 ; i <= k ; i ++ ) dst [ i - 1 ] = src [ c [ i ] ] ; }
Reset the generator to its initial configuration.
Reset the generator to its initial configuration .
// initialize // generate output