boost::accumulators::extract::sum_of_weights
// In header: <boost/accumulators/statistics/sum.hpp> extractor< tag::sum_of_weights > sum_of_weights;