P3211

views::transform_join

R3

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.

Authors
Hewill Kang
Mailing
2026-09
Doc date
2026-09-10
Audience
LEWGLWGSG9

Revision history

  1. 2026-09
    R3 Selected (shown above)
  2. 2026-07
    R2 LEWGLWGSG9

    views::flat_map

  3. 2025-07
    R1 LEWGLWGSG9

    views::flat_map