In Python we can do
for i, j in [(0, 0), (0, 1), (1, 0), (1, 1)]:
...
Is there something similar in C++?
In the non-nested case there is
for (auto i : {0, 1});
but extending to nested lists
for (auto [i, j] : {{0, 0}, {0, 1}, {1, 0}, {1, 1}});
doesn't compile.