previous | start | next

1.3 Compilation is different with templates

a. The code above is in simplesort.h (there is no simplesort.cpp!)

b. If we tried to compile this code by itself, it is incomplete. What
type will be subtituted for the parameter T?

c. We can use almost any type for T. ALMOST.


previous | start | next