reset boost accumulator c++
问题 Having not found a 'boost' way of resetting an accumulator in C++, I came across a piece of code that seems to reset a boost accumulator. But don't understand how it is achieving it. The code is as below - #include <iostream> #include <boost/accumulators/accumulators.hpp> #include <boost/accumulators/statistics/stats.hpp> #include <boost/accumulators/statistics/mean.hpp> using namespace boost::accumulators; template< typename DEFAULT_INITIALIZABLE > inline void clear( DEFAULT_INITIALIZABLE&