r/cpp • u/meetingcpp Meeting C++ | C++ Evangelist • Oct 17 '26
A quick C++ standard container overview
https://meetingcpp.com/blog/items/A-quick-Cpp-standard-container-overview.html
23
Upvotes
r/cpp • u/meetingcpp Meeting C++ | C++ Evangelist • Oct 17 '26
View all comments
Show parent comment
18
u/tialaramex Oct 17 '26
I would guess it's raw text that was then processed by "clever" tooling which thought
<bool>is an HTML tag and removed it. Which does suggest this wasn't proof read in place by anybody who knows enough English to recognise that "Others have used vector or vector" is a mistake of some kind.On topic: It's always sobering to see how much use stuff gets just because it was in the box. No way do half the participants go find themselves a 1980s hash table with separate chaining if they'd need to do that, but because
std::unordered_mapis right there in the standard library that's what they use.I think WG21 should think much harder about this when adding to the stdlib. When you put a left-handed corkscrew in the box, you may feel like programmers who don't want a left-handed corkscrew should just not use it, but in practice its inclusion functions as an endorsement. Obviously we should use a left-handed corkscrew, otherwise why is one included?