tailieunhanh - Lecture CIS 190: C++ programming - Chapter 13: Templates

Lecture CIS 190: C++ programming - Chapter 13 introduce to templates. The main contents of this chapter include all of the following: Overloading functions; templates: function templates, compiler handling & separate compilation; class templates;. | CIS 190 C C Programming Lecture 13 Templates Outline Overloading Functions Templates Function Templates - Compiler Handling Separate Compilation Class Templates Declaring - Constructors Defining Using Project 2 Overloading used to create multiple definitions for functions in various settings - constructors in a class - operators in a class - functions let s look at a simple swap function