1 #ifndef CollectionCombiner_H
2 #define CollectionCombiner_H
26 template <
typename Collection>
40 template <
typename Collection>
43 produces<Collection>();
44 for (
unsigned int i = 0;
i <
labels.size(); ++
i)
45 collectionTokens.push_back(consumes<Collection>(
labels.at(
i)));
47 template <
typename Collection>
50 template <
typename Collection>
52 unsigned int i = 0, i_max =
labels.size();
54 auto merged = std::make_unique<Collection>();
55 for (;
i != i_max; ++
i) {
57 merged->insert(merged->end(),
handle->begin(),
handle->end());