P2034R6 — Partially Mutable Lambda Captures
Ryan McDougall, Lakshay Garg
EWG
Revisions R8Jul 2026R7Jul 2026R6Apr 2026
Type erased callables like `std::move_only_function` are the backbone of most asynchronous systems. Users of such systems close their operations in lambdas and place them in a concurrent queue to be processed elsewhere. Performance is often key in such systems, and such operations may want its own local reusable scratch memory. Or perhaps an accumulator for hysteresis over multiple calls.