~/talk

Back to Basics: Standard Library Containers in Cpp

Talkat CppCon 2022 · 2022-09-11..09-16· [databases]
slides:none on file

Claims and measurements land the decision: std::vector and std::array are your best friends for sequences with contiguous layout and cache wins (benchmark summing 100M elements shows vector ~0.4s vs forward_list ~1.9s, many‑times faster). For key‑value use std::unordered_map often beats std::map by about 3× at 90k keys and ~8× at 90M keys. Also note iterator invalidation, reserve/rehash behavior, and that unordered_map requires a hash and equality.

AI-written summary · about

  1. 0:00Introduction
  2. 1:24Outline
  3. 2:06Generic Containers
  4. 2:47Containers
  5. 7:09Vectors
  6. 9:46Comparison
  7. 12:28Sequence Container Overview
  8. 20:37Vector Container
  9. 20:56Homogeneous Container
  10. 21:18Index Operator
  11. 21:57Insert Operator
  12. 22:33Deck
  13. 22:57Linked List
  14. 23:23Assistive List
  15. 23:43Signaling List
  16. 24:04Ordered Associative Containers
  17. 24:23Phone Books
  18. 29:40Auto assistive
  19. 31:27Associative containers
  20. 31:40Another map
  21. 35:31Unordered maps
  22. 36:49Required maps
  23. 37:50How does it work
  24. 41:09Why this is the case
  25. 45:27Your best friends
  26. 45:51Sequence Containers
  27. 48:27Performance Test
  28. 52:47Performance Numbers
  29. 54:47Phonebook
  30. 56:07Map
~/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.