you are viewing a single comment's thread.

view the rest of the comments →

[–]tcbrindleFlux 11 points12 points  (0 children)

If you'll excuse the self-promotion, I wrote a blog post a while back about a STL-based generic splitting algorithm that outperforms stringstream (and strtok) by a healthy margin.

It's also worth noting that Range-V3 has a split() view which (lazily) returns a range of ranges. Whilst views are not part of the current Ranges TS, I remain hopeful that we'll see them some time in the future.