~/talk

STL Algorithms – How to Use Them and How to Write Your Own

Talkat ACCU 2016 · on Saturday, 2016-04-23· [c-and-cpp]
links:none on file
slides:none on file

Explains how to implement and use STL-style algorithms with concrete code: builds adjacent_pair and for_all_pairs (one O(n), one O(n^2)), implements copy_while that returns a std::pair of input and output iterators, and a splitter using std::find and functors; shows making the adjacent-pair version work with input iterators by copying a saved element and by querying iterator properties via iterator_traits and tag dispatching; discusses iterator category tradeoffs, iterator wrappers like std::ref/back_inserter, and C++17 parallel/ranges directions.

AI-written summary · about

  1. 0:00STL algorithms intro
  2. 1:49Standard library overview
  3. 12:23STL vs hand-written loops
  4. 16:05Simple STL algorithms
  5. 24:49Custom adjacent pair
  6. 36:40Iterator categories design
  7. 52:52Tips for reusable algorithms
  8. 1:02:26Iterator constraints handling
  9. 1:12:47Ranges and algorithm future
  10. 1:24:49Q&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.