I am making a program in which I am inheriting publicly my Set
class from a built-in STL container class set
. I have to use the iterator type, while making some other specialized functions for my own Set
class, as defined in the stl
set class.
Now my question is: What would be the syntax to declare variables of iterator type inside my member functions? I have been trying:
template<typename T>
class Set : public set<T> {
public:
bool func()
{
iterator it,it2;
}
};
But the compiler is not recognizing iterator type. Kindly tell me the syntax to use the iterator type from the stl set
class.