Skip to content

Instantly share code, notes, and snippets.

@SteelPh0enix
Created February 13, 2017 18:21
Show Gist options
  • Save SteelPh0enix/a705bad0d6462bf40d968a2e1ba0837f to your computer and use it in GitHub Desktop.
Save SteelPh0enix/a705bad0d6462bf40d968a2e1ba0837f to your computer and use it in GitHub Desktop.
#include <iostream>
#include <array>
int main() {
std::array<int, 10> a{1, 2, 4, 8, 16, 32, 64, 128, 256, 512};
auto iter = a.begin();
for(int i = 0; i < 10; ++i)
std::cout << *iter++ << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment