~/talk

C++20 Ranges in Practice

Talkat CppNorth 2022 · 2022-07-18..07-20· [c-and-cpp]
slides:none on file

C++20 Ranges are shown in practical code: replacing iterator pairs with whole-range calls, automatic lifetime protection via ranges::dangling for rvalue ranges, and converting rvalue containers into views with views::all / owning views so piping a temporary into adapters works. The talk builds a range-based accumulate (with projections) to compute sum of squares in one pass and composes views::transform plus reverse/drop-while adapters into a reusable trim adapter, using a ranges-next polyfill for robust string construction — all examples compile and run.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:51Problem one: minimum element
  3. 24:28Problem two: sum of squares
  4. 46:20Problem three: string trimming
  5. 1:01:30Q&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.