Prior to Visual Studio 2005, an instance of a reference type could only be created using the new operator, which created the object on the garbage collected heap. However, you can now create an ...
* @tparam T The type of the elements in the stack * @brief Constructs a new Stack object * @param size Maximum size of the stack Stack(int size) : stackSize(size), stackIndex(-1), stack(new T[size]) { ...