I found the original proposal for *C++ structured bindings here. It proposes a way to easily bind multiple return values, i.e.:
auto {a, b} = minmax(data);
But now I see that everyone points to the C++17/C++1z proposal syntax of
auto [a, b] = minmax(data);
Now that I learned "lists are written { like, this }" there comes a new list-syntax? Why? What is the problem with curly braces here?
See Question&Answers more detail:os