More Lambda Features with C++20--Rainer Grimm
More lambda fun.
More Lambda Features with C++20
by Rainer Grimm
From the article:
Lambdas in C++20 can be default-constructed and support copy-assignment when they have no state. Lambdas can be used in unevaluated contexts. Additionally, they detect when you implicitly copy the this pointer. This means a significant cause of undefined-behavior with lambdas is gone...