HP Integrity NonStop H-Series User Manual

Page 82

Advertising
background image

(int d, vector< deque<unsigned int> > & b, bool & f)
: divisor(d), buckets(b), flag(f) {}

int divisor;
vector<deque<unsigned int> > & buckets;
bool & flag;

void operator () (unsigned int v)
{ int index = (v / divisor) % 10;
// flag is set to true if any bucket
// other than zeroth is used
if (index) flag = true;
buckets[index].push_back(v);
}
};

Advertising
This manual is related to the following products: