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 to view this page for the latest version.

Function template empty

boost::histogram::algorithm::empty — Check to see if all histogram cells are empty.


// In header: <boost/histogram/algorithm/empty.hpp>

template<typename A, typename S> 
  auto empty(const histogram< A, S > & h, coverage cov);


Use coverage to include or exclude the underflow/overflow bins.

This algorithm has O(N) complexity, where N is the number of cells.

Returns true if all cells are empty, and false otherwise.