| The Gaudi Framework v32r1 (f65d50dc)

Namespaces | Classes | Functions
Gaudi::Accumulators::details Namespace Reference

## Namespaces
| MsgCounter

## Classes
struct | MsgCounter

## Functions
template<typename Counter , typename Container , typename Fun >
void | accumulate (Counter &counter, const Container &container, Fun f=Identity{})
| A helper function for accumulating data from a container into a counter This is internally using buffers so that the original counter is only updated once. More...

## Function Documentation

## ◆ accumulate()

template<typename Counter , typename Container , typename Fun >

void Gaudi::Accumulators::details::accumulate | ( | Counter & | counter,
|  | const Container & | container,
|  | Fun | f = `Identity{}`
| ) |  |

A helper function for accumulating data from a container into a counter This is internally using buffers so that the original counter is only updated once.

Definition at line 882 of file Counters.h.

882 {} ) {
883 auto b = counter.buffer();
884 for ( const auto& elem : container ) b += f( elem );
885 }
plotSpeedupsPyRoot.counter
int counter
Definition: plotSpeedupsPyRoot.py:147