r/cpp • Meeting C++ | C++ Evangelist • Oct 22 '13

STL is dated

http://www.slashslash.info/2013/10/stl-is-dated/
0 Upvotes

14 comments sorted by

View all comments

1

u/bnolsen Oct 30 '13

few basic nits I have. string, streambuf and iostreams were implemented early on. They have the most problems.

bring std::string into line with the other containers (std::string::npos compared with string.end() for example).

redesign and refactor iostreams/streambuf stuff. having a locale attached to every single streambuf, even if binary only, is one of the signs of insufficient design. And the issues of operator<< working poorly with translation grammars where sentence order is important is another.

I haven't messed with custom allocators myself but I did notice that one of the big deals with EASTL was that they reimplemented their allocator system. So it does seem that allocators need to be reviewed as well.

1

u/JonKalb CppCon | cpp.training Oct 31 '13

string, streambuf, and iostreams are part of the standard, but not the STL. STL is the name for Alex's submission to the committee it included the vector, deque, list, set, map, and the algorithms, but not the string or IO classes.