~/talk

New (& Old) C++ Standard Library Containers - How to Choose the Right Container in C++26 and Beyond

Talkat ACCU 2025 · 2025-04-01..04-04· [c-and-cpp]
links:none on file
slides:none on file

Shows that naive container choice costs huge time: a simulation spikes 100× with scaling and one rewrite cuts a 7h15 run to ~30 minutes by recycling temporaries (implements a simple recycling bin of vectors and a vector-of-vectors fallback). Reveals real-world surprises: Microsoft deque effectively uses block size 1 so behaves like nodes, and vector<bool> massively misleads. Surveys concrete new/coming options and tradeoffs including in_place_vector (C++26) and the Hive/sequence proposals with modes that eliminate many common growth and locality pitfalls.

AI-written summary · about

  1. 0:00C++ standard library containers
  2. 1:09Performance and containers
  3. 8:59Vector growth patterns
  4. 19:15Vector bool pitfalls
  5. 23:09C++26 in-place vector
  6. 25:35Block-based containers
  7. 33:30Deque vs vector of vectors
  8. 40:47Hive container
  9. 50:59List and forward_list
  10. 56:20Stack, queue, priority queue
  11. 1:00:24Associative containers memory
  12. 1:06:57Flat containers
  13. 1:14:33Vector 2.0 proposal
  14. 1:29:20Choosing containers in C++26
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.