Skip to content

Glossary: Data Structures and Algorithms in C++

Class template

Also written: template, templates

One class definition that works for any type, like Stack<std::string> or Stack<char>. Templates must be fully visible where used, so they live in a header file.

Where the book teaches it

Related terms

Class