IIFE — Immediately Invoked Lambda
What is the purpose of this pattern?
const auto config = [&]() {
Config c;
c.timeout = parseTimeout(args);
c.retries = parseRetries(args);
if (c.retries > 10) c.retries = 10;
return c;
}();
Sign in to answer questions and track your progress
Sign In