M
Martoon
Suppose I have:
template <typename T> class MyClass
{
std::vector<T*> m_vecMyVector;
};
How do I declare an iterator for my vector? If I add to the class:
std::vector<T*>::iterator m_itMyIterator;
I get a compiler error.
template <typename T> class MyClass
{
std::vector<T*> m_vecMyVector;
};
How do I declare an iterator for my vector? If I add to the class:
std::vector<T*>::iterator m_itMyIterator;
I get a compiler error.