Lecture overview -- Keyboard shortcut: 'u'  Previous page: Template Specialization -- Keyboard shortcut: 'p'  Next page: Specialization of class templates - complete and partial -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Alphabetic index  Help page about these notes  Course home    Templates and The Standard Library - slide 11 : 46

Example - Specialization of Point<C> to Point<char>

We show show how to specialize Point<C> to Point<char>

This example solely demonstrates some technicalities of class template specialization

point.h
The general class template Point followed by the specialized one.
point.cc
The implementation of the template class Point - point.cc - nothing interesting here.
prog.cc
A program that illustrate the instantiation of both the general and specialized template classes.