First page Back Continue Last page Graphics
Function Template (cont.)
This would require a separate swap for each type you wanted to swap.
Now, this is not necessarily a bad thing.
If you only need two swaps, you haven't wasted much effort.
However, for expandability, it might be more useful to have one definition that you can instantiate as needed for a specific type. And, that is a template.