Encoding unit — one grounded idea

1 Captured variables by reference result in private reference members initialized at the time of lambda definition, with unspecified order and number of members.
“when you capture by reference something very similar happens you get private members that are references notionally and again these references are going to be initialized with the values of the variables that you've captured at the point where you write the Lambda expression however here the standard says that the compiler has even more freedom it is actually unspecified whether it even adds any extra members if you capture by reference and how many of them there are”
spoken · 634s · 2022-11-10 · en · CppCon · C++ Lambda Idioms - Timur Doumler - CppCon 2022
id: d05326f33cff0be2
concepts in this idea