Created
May 16, 2016 19:17
-
-
Save rep-movsd/85145ec2364d13cd9794080457d44938 to your computer and use it in GitHub Desktop.
stream iterator based tokenizer
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
vector<string> split3(string s) | |
{ | |
istringstream iss(s); | |
istream_iterator<string> begi(iss), endi; | |
return vector<string>(begi, endi); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment