Say, I want to iterate a number of pairs defined inline. Is there a shorter way to write:
for(auto pair : std::initializer_list<std::pair<int,int>>{{1,2}, {3,4}})
// ...
?
Say, I want to iterate a number of pairs defined inline. Is there a shorter way to write:
for(auto pair : std::initializer_list<std::pair<int,int>>{{1,2}, {3,4}})
// ...
?