Skip to content

Instantly share code, notes, and snippets.

@minjang
Created December 23, 2015 17:00
Show Gist options
  • Save minjang/4d4718385dee4f84b788 to your computer and use it in GitHub Desktop.
Save minjang/4d4718385dee4f84b788 to your computer and use it in GitHub Desktop.
// 4. 앞서 구현한 range 사용 예
cout << "[TEST 4] range\n";
auto &&D = range(100, 103);
// decltype(p) == pair<size_t, int>&&
for (auto &&p : enumerate(D))
cout << p.first << ": " << p.second << '\n';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment