~/talk

Comparing 'Classic C++' and 'Modern C++' Ways to Solve Programming Tasks

Talkat ACCU 2023 · 2023-04-19..04-22· [c-and-cpp]
name:Roger Orr
links:none on file
slides:none on file

Compares concrete C++ idioms by showing code, compile behavior and measurements: multiple loop forms (index, reverse, iterator, range-for), using algorithms like std::accumulate vs ranges::fold_left (C++23, Microsoft runtime available), and testing performance with blind comparisons. Shows template constraints evolving from enable_if to concepts with clearer error messages, stream pitfalls (strstream leaks, std::ostringstream copies fixed by std::move and new spanstream in C++23 by Peter Summerland), structured bindings vs tuples, and prefers owning members to reach the rule of zero.

AI-written summary · about

  1. 0:00Introduction
  2. 1:23History of C
  3. 3:31Lessons from C23
  4. 4:58For Loop
  5. 7:21Gotos
  6. 12:54Auto
  7. 15:32Reverse
  8. 18:22Multiply
  9. 20:04STL Iterator
  10. 23:09Generic Iterator
  11. 24:42AutoItem
  12. 26:36AutoRef
  13. 27:27Sean Parent
  14. 30:19Accumulation
  15. 33:45Summary
  16. 35:03constraining templates
  17. 36:43Vector events
  18. 37:43Standenableif
  19. 40:32Concepts
  20. 41:54Error Messages
  21. 42:33Using a Concept
  22. 43:53Advantages
  23. 45:38Streaming
  24. 46:38Logging
  25. 47:18StressStream
  26. 48:11InputStream
  27. 51:14OStringStream
  28. 54:14STDmove
  29. 56:14Fixed Buffer
  30. 57:27Span Stream
  31. 58:51I Span Stream
  32. 59:18I Span Stream Summary
~/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.