- Exercises

Let's solve a few exercises in this lesson regarding expression templates.

We'll cover the following

Problem Statement 1

Compare both programs containing + and * operators and study, in particular, the implementation based on expression templates.

  • Extend the example to expression templates by adding support subtraction and the division operators for the MyVector class.

Get hands-on with 1200+ tech skills courses.