beautypg.com

HP Integrity NonStop H-Series User Manual

Page 82

background image

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

int divisor;
vector > & 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);
}
};

This manual is related to the following products: