Tokenize a String using C++
Apr 8, 2014 · Commentscodetips c++
Here’s a short snippet to split a string into multiple tokens; into a vector. As you will see that, if you run the code, boost version performs better because you can choose a number of delimiters to split your string instead of the vanilla version using the normal C++ code. Of course, you may also write your own code to do something like this but I was looking to do some short snippets.
I have posted my code on Stacked-Crooked which you can view along with the output as well. It shows C++ doesn’t perform so well.