Nested iterator class, begin() and end() sentinel issues
问题 I am having issues with my nested iterator class. The end() sentinel is returning 0, and I am very lost! Any help would be appreciated. I want this program to be able to take any type of input, e.g. an int, create the vector, and be able to fill the array until the end() sentinel has been reached, such as typing Q, or any non-integer. I took out a few lines of unnecessary code to shorten it. template <class T> class Set { private: vector<T> m_element; int size; public: Set() : size(0) {}; ...