~/talk

Effective Ranges: A Tutorial for Using C++2x Ranges

links:none on file
slides:none on file

Hands-on C++20/23 coverage that shows concrete code (links to Godbolt) and what changes: use std::ranges algorithms instead of begin/end, pipeable views and adapters for lazy composition, and the new collection builders like range-based constructors to materialize results. Demos include std::print, sort-on-ranges, find_last, cartesian_product, zip, span, join+filter, and a sum-of-squares pipeline using iota/take and fold_left, with notes on caching, const-ref pitfalls, and performance (no needless moves).

AI-written summary · about

  1. 0:00Introduction
  2. 10:20Ranges in C++2x
  3. 14:18Range algorithms differences
  4. 21:31Views and lazy evaluation
  5. 24:54Range adapters and pipe syntax
  6. 30:09Standard range views
  7. 35:12Span as contiguous view
  8. 38:25Converting views to collections
  9. 43:30Custom views in C++23
  10. 45:35Practical examples
  11. 49:02Best practices
  12. 50:53Q&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.