Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template empty

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

Synopsis

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


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

Description

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.


PrevUpHomeNext