Created
January 23, 2014 10:04
-
-
Save procrastonos/8575999 to your computer and use it in GitHub Desktop.
Tokenize a string with STL functions and save tokens to a vector.
This file contains hidden or 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
| string line = "Some text"; | |
| istringstream iss(line); | |
| vector<string> tokens{istream_iterator<string>{iss}, istream_iterator<string>{}}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment