Lesson of 17 July 2008

Examples of template metaprograms

Example of class specialization

File spec1.cc

Another example of class specialization

File spec2.cc

Example of PARTIAL class specialization

File partial.cc

Use of a class as a function, example with midpoint rule

File midpoint.cc

Example of very simple template metaprogram

File factorial.cc

Bubble sort with template metaprogram

File bubble.cc

The lesson in a zip file

The zip file lesson8.zip