Element-wise tuple addition
I have some values held in a tuple, and I am looking to add another tuple to it element-wise. So I would like functionality like this: std::tuple<int,int> a = {1,2}; std::tuple<int,int> b = {2,4}; std::tuple<int,int> c = a + b; // possible syntax 1 a += b; // possible syntax 2 a += {2,4}; // possible syntax 3 Where the output tuple would have the value {3,6} Was looking at CPP reference , but I couldn't find this functionality. It's possible that this and this question are relevant, however the answers are obfuscated by other complexities. You could also consider using std::valarray since it