Skip to content

Instantly share code, notes, and snippets.

@ruediger
Created April 15, 2014 19:13
Show Gist options
  • Save ruediger/10761125 to your computer and use it in GitHub Desktop.
Save ruediger/10761125 to your computer and use it in GitHub Desktop.
C++11 Quiz
// Quick C++11 Quiz
typedef istreambuf_iterator<char> iter;
stringstream ss("a");
iter const i(ss);
iter j(i);
iter const end;
++j;
cout << boolalpha << (j == end) << " " << (i == end) << endl;
// What does this print?
@Yughurten
Copy link

false true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment