Don't worry, that loop initialization was just to illustrate the problem I encountered whenever I tried to traverse an STL vector with iterators. Thanks, though :-)
Type: Posts; User: Maelstrom
Don't worry, that loop initialization was just to illustrate the problem I encountered whenever I tried to traverse an STL vector with iterators. Thanks, though :-)
Thanks!
The addition of "typename" specifies that the statement "vector<T>::iterator i" should be treated as a declaration, not a function call, correct?
Suppose we have a templated class with an STL vector as a data member:
#include <vector>
using namespace std;
template <class T>
class Point
{
public: