- Exercise

In this lesson, we'll solve an exercise on template arguments.

We'll cover the following

Problem Statement

The class Matrix holds its values in the container Cont.

  • Cont should have a default argument std::vector.
  • Instantiate myIntVec and myDoubleVec without specifying the container explicitly.

Get hands-on with 1000+ tech skills courses.