All challenges
Multiple ChoiceHard 45s

Writing CTAD deduction guides

What is a user-defined deduction guide for a class template used for CTAD?
Options
  1. 1A function-like declaration named the same as the template telling the compiler how to deduce arguments
  2. 2A specialization of std::deduction, which the standard library selects to infer the template arguments
  3. 3A comment directive //!deduce that the preprocessor reads to emit the deduced template argument list
  4. 4A static member function named deduce, invoked implicitly by the compiler to compute the class arguments

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