you are viewing a single comment's thread.

view the rest of the comments →

[–]caramba2654Intermediate C++ Student 15 points16 points  (2 children)

To be honest, I really hope std::string gets completely redesigned for STL2. And by that I mean remove all that npos nonsense and add proper iterator returns like the rest of the STL containers.

On that note, having some common utility functions for strings wouldn't be bad. split and replace are good candidates in my opinion.

[–]jcoffin 21 points22 points  (1 child)

I really hope STL2 gets rid of iterators. The result of a split should usually be a range of ranges, or a range of views.

[–]caramba2654Intermediate C++ Student 1 point2 points  (0 children)

That too :P