Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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