MCPcopy Create free account
hub / github.com/boostorg/histogram / sum

Function sum

test/utility.hpp:59–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

run_testsFunction · 0.70
mainFunction · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 2

run_testsFunction · 0.56
mainFunction · 0.56