The forum is buzzing with questions about tokenizing a C++ string. This is a short function that does it and returns a vector of the tokens. As an option, the delimiter string can represent either a multichar delimiter or a collection of single char delimiters:
// multichar delimiter == "^^"
"aa^^bb^c^^d"
becomes
"aa"
"bb^c"
"d"
// single char delimiter list == "^,"
"aa^^b,b^c^^d"
becomes
"aa"
""
"b"
"b"
"c"
""
"d"
A test driver is not included because that confused people with my last snippet.