I was just wondering if there was anything (either in c++11 or boost) that could help me do something like this:
std::vector<int> v1 = {1, 2, 3};
std::vector<int> v2 = {2, 5, 4};
std::list<int> res;
algorithm(v1.begin(), v1.end(), v2.begin(), v2.end(), back_inserter(res), std::plus<int>());
the result should of course be {3, 7, 7} and where instead of std::plus could be any binary_function.
So if anyone has an idea, let me know.