Lecture overview -- Keyboard shortcut: 'u'  Previous page: Class templates in C++ -- Keyboard shortcut: 'p'  Next page: Function templates -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Alphabetic index  Help page about these notes  Course home    Templates and The Standard Library - slide 6 : 46

Example - Point<C,dim,default_value>

We make a Point class parameterized with a type C, an integer dimension, and some default value in C

All template parameters are defaulted

point.h
A type parameterized variant of class Point - point.h.
point.cc
The implementation of the template class Point - point.cc.
prog.cc
A program that illustrate the template instantiation.