I have a template class defined as the following:
What I'm trying to do is create an iterator to traverse the contents of bucket.Code:template <class T, class HF> class HashTable { private: vector<list<T> > bucket; public: //public methods bool find(const T&) const; };
I've tried a few variations of defining a list iterator, such as
but haven't found anything that is correct? Any ideas?Code:list<T>::const_iterator it;




Reply With Quote