~/talk

Custom Views for the Rest of Us

Talkat CppCon 2021 · on Thursday, 2021-10-28· at 14:00· online· [rust]
links:none on file
slides:none on file

Implements an all_pairs view that lazily presents every ordered pair (except the diagonal) and uses it to compute pairwise gravitational forces for a toy solar‑system; shows the iterator + sentinel layout, why the outer iterator returns a proxy‑like reference, and how proxy iterators force custom iter_move/iter_swap and common_reference workarounds. Code is slide‑ready and works but isn’t production hardened: custom views can’t be piped pre‑C++23 and proxies can break old generic algorithms, so prefer std::ranges or range‑v3 until fixes land.

AI-written summary · about

  1. 0:00Start
  2. 2:36Motivating Example
  3. 3:31Gravitational Range
  4. 8:06Range Adapter Pipeline
  5. 9:05Adapter and Range Factory
  6. 9:36Range Factory
  7. 10:15Nested for Loop
  8. 10:27Description
  9. 10:51The Template Signature
  10. 11:48The Constructor
  11. 12:26Iterator Types
  12. 13:50Ignore Pairs of Matching Elements
  13. 14:04The Constructor and the Dereference Operator
  14. 16:39Why Use Extensional At All
  15. 19:26Vector of Bool
  16. 22:12Proxy Iterator
  17. 24:00Customization Point Object
  18. 25:55Swap and Intermove
  19. 30:21Common Reference
  20. 35:19The Range Adapter Closure Object
  21. 36:43The Range Adapter Object
  22. 38:38Type Range Adapter Closure
  23. 40:23Conclusion
  24. 40:56Proxies
~/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.