About Templates

Let's learn about template basics and their importance in C++.

We'll cover the following

Templates

Templates are one of the outstanding features of C++. They become more and more important with each new C++ standard. The reason is quite simple, templates provide abstraction without an abstraction performance penalty.

We have templates for classes (class templates) and functions (function templates) which are used to create concrete classes or functions:

  • Class and function templates are families of classes and functions respectively.
  • Templates play an important role in the development of generic libraries like the Standard Template Library (STL)

In the next lesson, we’ll discuss who should take this course.

Get hands-on with 1200+ tech skills courses.