Search⌘ K

Template Parameters

Explore the different kinds of template parameters in C++ including type, non-type, and template-template parameters. Understand how alias templates provide a way to name partially bound templates, enabling more flexible code reuse. This lesson prepares you to effectively use templates and partial specialization in your C++ programming.

We'll cover the following...

Alias Templates #

Alias templates aka template typedefs allow us to give a name to partially bound templates, which allows for partial specialization of templates.

template <typename T, int Line, int Col> class Matrix{
...
};
template <typename T, int Line>
using Square = Matrix<T, Line, Line>;
   template <typename T, int Line>
   using
...