Boost logo

Boost :

From: Ben FrantzDale (benfrantzdale_at_[hidden])
Date: 2007-01-31 00:21:48


This library looks very interesting. One feature I would like to see but
couldn't find in the documentation is the ability to combine accumulators.
For example,

  accumulator_set<double, stats<tag::mean> > acc1, acc2;
  acc1(1.0);
  acc2(2.0);
  acc1(acc2);
  cout << "Mean of 1.0 and 2.0 is " << mean(acc1) << endl; // Prints 1.5.

This would be particularly useful for parallel computing applications.

Is this possible? Would it be difficult to add?

—Ben


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk