Created
April 15, 2014 19:13
-
-
Save ruediger/10761125 to your computer and use it in GitHub Desktop.
C++11 Quiz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
false true