Skip to content

Glossary: Software Design Patterns in C++

Template method

Also written: template method pattern

A pattern that fixes a job's steps in one place and leaves one step, the hook, for the caller to fill in. A report function takes a row-format function, or a base class has a pure virtual `format_row`. It is unrelated to C++ templates.

Where the book teaches it

Related terms

HookAbstract classRAII