I know that in the stl list iterator, the * operator returns the current element it's on. My question is, how can I actually output the data inside that element?
It won't let me use the . or -> operator... Is this even possible?
I need to be able to access the data in the current Element of the list to compare it with the values passed in and continue building my graph class :D
Any help is highly appreciated, thanks
template <typename V, typename E>
void Graph<V, E>::InsertEdge(V from, V to, E edge)
std::list<Vertex<V>*>::iterator iter; //linked list of Vertex pointers
for(iter = m_Vertices.begin(); iter != m_Vertices.end(); ++iter)
cout << (*iter).m_Data << endl; //error here