Re:Goals and Priorities for C++
by abjKT26nO8 on Friday May 22, 2020 @02:16PM
(#23275186)
"&" captures references, not copies. I would like it to be just syntactic sugar for "&x, &y, ..." and only include the variables that I actually used in the body of lambda. There is no performance cost to that (unless a crash is somehow a performance win --- hey, the program finished earlier, I guess it's faster...).
[ Parent
| on HN ]