...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::shrink_and_rebin — Convenience overload for single axis.
// In header: <boost/histogram/algorithm/reduce.hpp> auto shrink_and_rebin(double lower, double upper, unsigned merge);