Skip to content

Instantly share code, notes, and snippets.

@fabiogaluppo
Created November 5, 2015 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiogaluppo/80d467c295edcde1718c to your computer and use it in GitHub Desktop.
Save fabiogaluppo/80d467c295edcde1718c to your computer and use it in GitHub Desktop.
std::iota(xs.begin(), xs.end(), iota_step<int>(2, 2)); //xs = 2 4 6 8 10 12 14 16 18 20
std::iota(xs.begin(), xs.end(), iota_step<int>(0, -2)); //xs = 0 -2 -4 -6 -8 -10 -12 -14 -16 -18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment