Table of Contents

Templates

There are function and class templates.

Basic idea is to save code lines by keeping a type specifier generic in your function/class definition, till you need an instance of your function/class, where you then specify the type directly or indirectly.