Ranges for the Standard Library
summary
Demonstrates a concrete library (range-v3) and a working console calendar built by composing lazy views and eager actions, including a custom chunk/interleave/transpose trio that turns a range of dates into side‑by‑side months. Shows this composes without mutable state or explicit loops (one if only), uses Boost.DateTime and Boost.Format for IO, and highlights proposals for Concepts, range algorithms, sentinels and a TS toward stl2 — the example compiles and runs and the adapters are reusable.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 0:15The Ranges concept
- 2:28Creating a range of dates
- 6:11Views and lazy computation
- 8:46Grouping by months
- 13:10Composing range adapters
- 15:02Grouping by weeks
- 17:14Formatting calendar output
- 23:04Actions vs views
- 25:05Adding month headers
- 27:37Padding and final structure
- 29:58Side-by-side layout
- 32:37Implementing custom adapters
- 38:32Transposing ranges
- 41:07Implementing range facade
- 47:55Final code and conclusions
- 53:03Ranges in C++ standard
- 59:48Q&A
related talks
01h 25mC++23 Ranges: Conceptual Changes and Useful Practicalities
01h 01mAn Overview of Standard Ranges
01h 04mHow to Rangify Your Code
01h 15mHow to Rangify Your Code
01h 02mC++20 Ranges in Practice
01h 09mMissing (and future?) C++ Range Concepts
01h 01mFrom STL to Ranges: Using Ranges Effectively
57mRange Algorithms, Views and Actions: A Comprehensive Guide
