Thrill  0.1
merge_combine.hpp File Reference
#include <algorithm>
#include <functional>
#include <iterator>
+ Include dependency graph for merge_combine.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.




template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename Comparator , typename Combine = std::plus< typename std::iterator_traits<InputIterator1>::value_type>>
OutputIterator merge_combine (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Comparator cmp=Comparator(), Combine combine=Combine())
 Merge two sorted ranges and add all items comparing equal. More...