P2034

Partially Mutable Lambda Captures

R10

`const` and `mutable` extend cleanly to lambda captures. The design is easy to implement, follows the language’s direction, and matches the common model of a lambda as shorthand for an object of a callable struct:

Authors
Ryan McDougall, Lakshay Garg
Mailing
2026-10
Doc date
2026-10-08
Audience
EWGCWG

Revision history

  1. 2026-10
    R10 Selected (shown above)
  2. 2026-09
    R9 EWGCWG

    Partially Mutable Lambda Captures

  3. 2026-07
    R8 EWGCWG

    Partially Mutable Lambda Captures

  4. 2026-07
    R7 EWG

    Partially Mutable Lambda Captures

  5. 2026-04
    R6 EWG

    Partially Mutable Lambda Captures