All challenges
Multiple ChoiceIntermediate 45s

Generic lambda and auto capture

A C++14 generic lambda `[](auto x){...}` is implemented by the compiler as:
Options
  1. 1A function object storing an std::any of the argument, cast back on invocation.
  2. 2A macro expansion generating one overload per argument type at the call site.
  3. 3A closure type with a templated operator() (a template in the closure).
  4. 4An std::function-wrapped template erasing the argument through a callable wrapper.

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle