Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::vector<std::string> SplitLine(const std::string &line)
- {
- std::vector<std::string> tokens;
- std::stringstream ss(line);
- copy(std::istream_iterator<std::string>(ss),
- std::istream_iterator<std::string>(),
- back_inserter(tokens));
- return tokens;
- }
Add Comment
Please, Sign In to add comment