Merge add algorithm

Is there easy way to take two sorted vectors and merge them together into a new vector such that if two Elements have identical keys then resulting vector would just sum the values ?

I can code myself just by modifying a standard merge algorithm but I want to learn how to do it just with stl or ranges.