Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
for (size_t i = 0 /* init */; i < xs.size() /* range end */; ++i /* increment */)
xs[i] = static_cast<int>(i) + 1;
//xs = 1 2 3 4 5 6 7 8 9 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment