Familiar Template Syntax IILEs

A lot has already been said in the blogosphere about the use of immediately-invoked lambda expressions (IILEs) for initialization, and they’re certainly very useful. In C++20, P0428 gives us “familiar template syntax” for lambdas. Now, instead of writing a regular generic lambda: auto add = [] (auto x, auto y) { return x + y;… Continue reading Familiar Template Syntax IILEs

Published
Categorized as C++