Multiple ChoiceHard 45s
Writing CTAD deduction guides
What is a user-defined deduction guide for a class template used for CTAD?
Options
- 1A function-like declaration named the same as the template telling the compiler how to deduce arguments
- 2A specialization of std::deduction, which the standard library selects to infer the template arguments
- 3A comment directive //!deduce that the preprocessor reads to emit the deduced template argument list
- 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.