All pastes #239032 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-11-05 05:20 UTC
rendered paste body
struct permuted{
    list<string> index;
    list<string>::size_type bound;
};

indexed.sort(compare);

bool compare(const permuted& x, const permuted& y){
    list<string>::const_iterator i = x.index.begin();
    list<string>::const_iterator j = y.index.begin();

    return *i < *j;