Function Templates

Steven J. Zeil

Old Dominion University, Dept. of Computer Science

Table of Contents

1. Function Templates
1.1. Writing Function Templates
1.2. Using Function Templates
1.3. Function Templates and the C++ std Library
2. Analyzing Template Functions
2.1. Watch for "Hidden" Function Calls"

We've suggested that programs may have many instances of code that are really minor variations on the same pattern.

These code instances can be created manually by programmers by editing an existing version of the code, making changes for each desired variation on the pattern. But this process can be tedious and error-prone.

In the Forum:

(no threads at this time)