Constexpr If Examples
Exercises
Copyright © James Raynard 2022
Fibonacci Number
• Write a program which generates a Fibonacci number using
• Template specialization
• Constexpr if
• Compare your solutions
Copyright © James Raynard 2022
Parameter Pack with Constexpr If
• Rewrite the example from the Variadic Templates lecture to use
constexpr if
Copyright © James Raynard 2022