Lecture overview -- Keyboard shortcut: 'u'  Previous page: Templates [Section] -- Keyboard shortcut: 'p'  Next page: Templates versus generics in Java, C# and C++ -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Alphabetic index  Help page about these notes  Course home    Templates and The Standard Library - slide 2 : 46

Templates

Templates in C++ provide for compile-time parametrization of functions and classes

Templates correspond to generic types and generic methods in Java and C#

The C++ template facility is macros that look like classes [Anders Hejlsberg].