~/talk

STL Algorithms - why you should use them, and how to write your own

Talkat CppCon 2016 · 2016-09-18..09-23· [software-architecture]
links:none on file
slides:none on file

Explains why std algorithms are reliable, tested and efficient and shows how to build reusable ones: implements adjacent_pair and an O(n^2) all_pairs, a copy_while that returns the advanced input iterator, and a split that uses find; demonstrates using iterator categories with iterator_traits and tag dispatch to provide different implementations for input vs forward iterators; proves nontrivial ideas (gather can be done with two stable_partitions), and emphasizes handling degenerate cases and measuring complexity.

AI-written summary · about

  1. 0:00Introduction
  2. 1:40What are STL algorithms
  3. 3:40Advantages of using algorithms
  4. 8:23Algorithm design principles
  5. 13:16Writing custom algorithms
  6. 19:43Abstraction and iteration
  7. 23:48Custom copy variants
  8. 30:16Design challenges and tradeoffs
  9. 37:32General guidance and history
  10. 46:40Iterator categories
  11. 52:52Tag dispatch 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.