a design structure for creating several things that are almost identical but need different values. Not template-meta-programming.

This tag should not be confused with .

Templates are pieces of code that are written with the intention of being used over and over again as a "cookie cutter" for multiple pieces of code.

The template method pattern is a behavioral design pattern that defines the program skeleton of an algorithm in a method, called template method, which defers some steps to subclasses.

history | excerpt history