Skip to content

Instantly share code, notes, and snippets.

@CrazyPython
Created July 7, 2016 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CrazyPython/be933ac13243f4db9c2a6155c63ae9b2 to your computer and use it in GitHub Desktop.
Save CrazyPython/be933ac13243f4db9c2a6155c63ae9b2 to your computer and use it in GitHub Desktop.
My slow tokenize implementation
vector<string> inline tokenize(string str) {
istringstream iss(str);
return {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