From STL to Ranges: Using Ranges Effectively
summary
Coverage of C++20 ranges with concrete code, three implementations tested (range-v3, cmcstl2, nanorange), and production experience on GCC/Linux; demonstrates that views are lazy and cheap to copy, shows piping vs constructor forms, explains that many algorithms return iterators and projections add a third parameter for key extraction, introduces span and string_view as contiguous ranges, notes some algorithms (accumulate/numeric) are missing and performance differences are anecdotal.
AI-written summary · about
chapters (8)
- 0:00Introduction to Ranges
- 10:14Ranges Basics and Concepts
- 22:23Range-based For Loops
- 32:13Views in Detail
- 39:17string_view and span
- 43:18Common View Types
- 49:31Performance Observations
- 55:40Q&A Session








