C++ Templates: The Complete Guide



Function Templates

Function templates are functions that are parameterized so that they represent a family of functions.

Class Templates

Similar to functions, classes can also be parameterized with one or more types.

Nontype Template Parameters

For function and class templates, template parameters don't have to be types.

Tricky Basics

This chapter covers some further basic aspects of templates that are relevant to the practical use of templates.

Using Templates in Practice

Template code is a little different from ordinary code.

Basic Template Terminology

So far we have introduced the basic concept of templates in C++.

Fundamentals in Depth and Names in Templates

Names are a fundamental concept in most programming languages.

 

Read more