libsequence  1.9.5
util.hpp
Go to the documentation of this file.
1 
8 #ifndef SEQUENCE_SUMMSTATS_UTIl_HPP__
9 #define SEQUENCE_SUMMSTATS_UTIl_HPP__
10 
11 #include <cstdint>
12 #include <algorithm>
13 
14 namespace Sequence
15 {
16  template <typename T>
17  inline bool
18  all_missing(const T& t)
21  {
22  return std::all_of(
23  t.begin(), t.end(),
24  [](const typename T::value_type v) { return v < 0; });
25  }
26 } // namespace Sequence
27 
28 #endif
bool all_missing(const T &t)
Definition: util.hpp:18
The namespace in which this library resides.