| 57 | namespace histogram { |
| 58 | template <typename Histogram> |
| 59 | typename Histogram::element_type sum(const Histogram& h) { |
| 60 | return std::accumulate(h.begin(), h.end(), typename Histogram::element_type(0)); |
| 61 | } |
| 62 | |
| 63 | using static_tag = std::false_type; |
| 64 | using dynamic_tag = std::true_type; |