All fields

“Type Deduction & auto” in Information Technology

17 questions across 1 technology.

Information Technology

17 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is auto return type deduction for functions? C++ › Type Deduction & autoC++Type Deduction & autoIntermediate
2What is decltype and how does it differ from auto? C++ › Type Deduction & autoC++Type Deduction & autoIntermediate
3What is decltype(auto) and when is it needed? C++ › Type Deduction & autoC++Type Deduction & autoAdvanced
4What is the auto keyword? C++ › Type Deduction & autoC++Type Deduction & autoBeginner
5What is the difference between auto, auto&, and const auto&? C++ › Type Deduction & autoC++Type Deduction & autoBeginner
6What are the benefits and risks of using auto? C++ › Type Deduction & autoC++Type Deduction & autoBeginner
7What is the difference between auto x = {…} and auto x{…}? C++ › Type Deduction & autoC++Type Deduction & autoBeginner
8How does template argument deduction work? C++ › Type Deduction & autoC++Type Deduction & autoIntermediate
9Why does auto strip references and top-level const, and when is that a problem? C++ › Type Deduction & autoC++Type Deduction & autoAdvanced
10What is class template argument deduction (CTAD)? C++ › Type Deduction & autoC++Type Deduction & autoAdvanced
11How does deduction interact with reference collapsing rules? C++ › Type Deduction & autoC++Type Deduction & autoAdvanced
12What is a forwarding (universal) reference and how is it deduced? C++ › Type Deduction & autoC++Type Deduction & autoIntermediate
13How do you specify a lambda's return type? C++ › Lambda ExpressionsC++Lambda ExpressionsIntermediate
14What is static_cast used for? C++ › Casting & ConversionsC++Casting & ConversionsBeginner
15What is narrowing conversion and how does brace initialization help? C++ › Casting & ConversionsC++Casting & ConversionsIntermediate
16What are the different ways to apply a constraint to a template? C++ › Concepts & ConstraintsC++Concepts & ConstraintsIntermediate
17What is a generic (template) lambda? C++ › Lambda ExpressionsC++Lambda ExpressionsAdvanced