~/talk

Back to Basics: (Range) Algorithms in C++

slides:none on file

Shows concrete before/after code: replace ad hoc loops with library calls like min_element, partition/stable_partition/rotate and accumulate versus reduce with execution::par. Demonstrates C++20 ranges, points out pitfalls (accumulate’s deduced init type, UB when passing wrong iterators), uses cpprreference and Godbolt with clang16 to compare assembly and proves no performance loss; mentions the library has 200+ algorithms and walks through working examples on a Vector of Persons so the changes actually compile and run.

AI-written summary · about

  1. 0:00Welcome to track
  2. 0:46C++ algorithms intro
  3. 3:11Simpsons cast intro
  4. 6:26Manual loops problems
  5. 9:15Youngest with min_element
  6. 13:31C++20 ranges min_element
  7. 17:20Bart partitions children
  8. 20:51Refactor with partition
  9. 23:21C++20 ranges partition
  10. 26:49Stable partition ordering
  11. 29:21Summing ages with accumulate
  12. 34:23Loops vs algorithms perf
  13. 37:12Accumulate power complexity
  14. 41:51Parallelize with reduce
  15. 44:23Raw loops vs algorithms
  16. 47:18Learning resources
  17. 50:55Final takeaways and Q&A
~/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.