Advanced
C++
Q66 / 100
What is template metaprogramming (TMP)?
Correct! Well done.
Incorrect.
The correct answer is B) Using the C++ template system to perform computations at compile time, producing constants or types
B
Correct Answer
Using the C++ template system to perform computations at compile time, producing constants or types
Explanation
TMP exploits template instantiation for compile-time computation (e.g., computing Fibonacci at compile time). C++17 constexpr and C++20 concepts reduce the need for TMP.
Progress
66/100