MCPcopy Create free account
hub / github.com/YACReader/yacreader / expectedTotal

Function expectedTotal

tests/concurrent_queue_test/concurrent_queue_test.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61using JobDataSet = QVector<JobData>;
62
63int expectedTotal(JobDataSet::const_iterator first, JobDataSet::const_iterator last)
64{
65 return std::accumulate(first, last, 0,
66 [](int total, JobData job) {
67 return total + job.summand;
68 });
69}
70
71int expectedTotal(const JobDataSet &jobs)
72{

Callers 4

singleUserThreadMethod · 0.85
multipleUserThreadsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected