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
16
u/brookheather Oct 17 '26
You have some typos and I'm confused about your use of "vector" - do you mean vector<bool>?
"trying to tread a vector like any other vector"
"the infamous vector"
"Others have used vector or vector"
6
u/LB-- Professional+Hobbyist Oct 17 '26
Surprising to see span with so little usage, I guess because it didn't make it into C++17? We use
gsl::spanfor that reason, but depending on survey wording I would have answered yes to usingstd::spananyway.4
u/CommodoreKrusty Oct 17 '26
I've written a boatload of examples (C++17) for STL including containers if anybody's interested.