summaryrefslogtreecommitdiff
path: root/src/utils/split.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/split.hpp')
-rw-r--r--src/utils/split.hpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/utils/split.hpp b/src/utils/split.hpp
index 0067131..9fee90a 100644
--- a/src/utils/split.hpp
+++ b/src/utils/split.hpp
@@ -7,15 +7,7 @@
namespace utils
{
- std::vector<std::string> split(const std::string &s, const char delim)
- {
- std::vector<std::string> ret;
- std::stringstream ss(s);
- std::string item;
- while (std::getline(ss, item, delim))
- ret.emplace_back(std::move(item));
- return ret;
- }
+ std::vector<std::string> split(const std::string &s, const char delim, const bool allow_empty=true);
}
#endif // SPLIT_INCLUDED