5 #ifndef mergeDuplicateEntries_H
6 #define mergeDuplicateEntries_H
20 template <
class C1,
class CMP,
class MERGER>
21 std::vector<typename C1::value_type>
24 typename C1::const_iterator
first =
c1.begin();
26 typename C1::const_iterator last =
c1.end();
27 std::vector<typename C1::value_type>
result;
32 while (++
first != last) {
38 typename C1::value_type merged = merger( *
current, *
first);
40 merged = merger( merged, *
first);