This is a template specialization of a template called a stack. the stack is not defined in any of these header files. If you want to define a new class of patterns, you must first define the base case
template<typename T> class stack { //implementation goes here }; template<> class stack<int> { public: std::vector<int> stackVector; };
If you want to define a stack only for int, and not for each type, you can use
template<typename T> class stack; template<> class stack<int> { public: std::vector<int> stackVector; };
source share