Problem You need to break a string into pieces using a set of delimiters. Solution Use the find_first_of and first_first_not_ofmember functions on basic_stringto iterate through the string and alternately locate the next tokens and non-tokens.