~/talk

An Overview of Standard Ranges

Talkat CppCon 2019 · 2019-09-15..09-20· [c-and-cpp]
slides:none on file

C++20 adds concept-constrained algorithms, range-based overloads that accept whole containers, and lazy composable adapters called views|filter|transform that avoid temporary copies; projections let algorithms operate on member fields via pointers-to-members. Sentinels include unreachable_sentinel which the compiler sees as never-equal to an iterator, removing a compare and improving tight-loop codegen (microbenchmarks show measurable speedups). Three compatible libraries are usable today: range-v3, CMCSTL2, and NanoRange, with varying compiler concept support.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:55What are standard ranges
  3. 10:17Concepts in C++20
  4. 18:49Constrained algorithms and better errors
  5. 22:59Range-based overloads
  6. 25:16Sentinels and optimizations
  7. 33:23Projections explained
  8. 46:12Views and lazy evaluation
  9. 57:11Using ranges today
  10. 1:00:47Q&A and closing
~/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.