Are you an EPFL student looking for a semester project?
Work with us on data science and visualisation projects, and deploy your project as an app on top of Graph Search.
This lecture introduces the concept of generic programming in C++, focusing on templates. The instructor explains how to declare and use generic models for classes and functions, showcasing examples like exchanging variable values and creating class models. The lecture covers specialization, instantiation, and the benefits of using templates for generic treatments. It also discusses overloading, specialization, and the importance of defining class models. The instructor emphasizes the syntax for declaring and defining templates, as well as the implications of separate compilation when working with templates.