Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

Function template project

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, typename Iterable> 
  auto project(const histogram< A, S > & h, const Iterable & c);


This version accepts a source histogram and an iterable range containing the remaining indices.