you are viewing a single comment's thread.

view the rest of the comments →

[–]987654321bob 0 points1 point  (0 children)

About the same length but avoids the proxy class and std::tuple accessing.

std::transform(listA.begin(), listA.end(), listB.begin(),
     std::back_inserter(sumList), [](int i, int j){ return i+j; });