#ifndef ISTACK_H #define ISTACK_H template <typename T> class IStack { public: virtual ~IStack() = 0 {}; virtual void push(const T& element) = 0; virtual T pop() = 0; virtual T peek() const = 0; virtual bool isEmpty() const = 0; }; #endif
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)