Splits a specified string into a container of a certain type.
Examples, also split
works well with join.
std::vector<std::string> v;
utils::split(v, "a:b:c:d:ef:ghi", ":");
std::cout << utils::join(v.begin(), v.end()) << std::endl;
std::list<std::string> v;
utils::split(v, "a:b:c:d:ef:ghi", ":");
std::cout << utils::join(v.begin(), v.end()) << std::endl;