P3211R3 — views::transform_join
Hewill Kang
LEWGLWGSG9
Revisions R3Sep 2026R2Jul 2026
We propose `views::transform_join`, a range adaptor that applies a function returning a range for each element, then flattens the result. This pattern, commonly known as *flat mapping*, is widespread in functional programming and data processing. Providing it as a dedicated view improves readability and expressiveness, and also opens opportunities for optimization in lazy evaluation contexts.