Lecture Notes for Advanced Programming II

13 November 2003 - Template Functions


Outline


x-to-string Conversion


Avoiding Duplicated Code


Templates


Template Functions


Template Instantiation


Consistent Binding


A Successful Consistent Binding


Gotchas - Template Parameters


Gotchas - Strict Type Matching


Other Gotchas


Polymorphism


The string-to-x Problem


Explicit Template Parameter Bindings


Actual-Parameter Conversions


Formal Template Value Parameters


Points to Remember


This page last modified on 17 November 2003.