...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::histogram::algorithm::reduce — Shrink and/or rebin axes of a histogram.
// In header: <boost/histogram/algorithm/reduce.hpp> template<typename Histogram, class... Ts> decltype(auto) reduce(const Histogram & hist, const reduce_option & opt, Ts &&... opts);