...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::project — Returns a lower-dimensional histogram, summing over removed axes.
// In header: <boost/histogram/algorithm/project.hpp> template<typename A, typename S, unsigned N, typename... Ns> auto project(const histogram< A, S > & h, std::integral_constant< unsigned, N >, Ns...);