Step 6 of 6
Challenge: split
Your turn: write std::vector<std::string> split(const std::string& s, char sep) that breaks a string at every sep.
split("a,b,c", ',')gives{"a", "b", "c"}split("a,,b", ',')gives{"a", "", "b"}(empty pieces are kept)split("", ',')gives{""}