Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::vector<std::string> res;
- std::stringstream ss;
- ss.str(val);
- std::string item;
- while(std::getline(ss, item, c)) {
- if(flags & STRIP_SPACES) {
- boost::trim(item);
- }
- if(!(flags & REMOVE_EMPTY) || !item.empty()) {
- res.push_back(std::move(item));
- }
- }
- return res;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement