How do we use templates?
Templates used to be compile-time expanded. In other words, a C++ pre-compiler compiler expands each instance of a class template, such as LinkedList<int> into its definitions like int getValue(void) const { return payload; }.
In this section, we’ll introduce the concepts involved in the use of class templates, as well as problems and solutions related to the use of class templates.