T
Talha
Hi,
I have a general question about iterators
suppose I have a class
class MyClass
{
public:
....
private:
PtrList m_ptrlist<somerecordtype>;
}
PtrList<T> is a class taht has an iterator implemented .. so i could
do:
m_ptrlist::iterator it = m_ptrlist.begin() .. and iterate / modify
items etc.
but suppose i want MyClass to be able to iterate over this list and
present that iteration interface to the user . what is the correct
way to do this?
Thanks!!
I have a general question about iterators
suppose I have a class
class MyClass
{
public:
....
private:
PtrList m_ptrlist<somerecordtype>;
}
PtrList<T> is a class taht has an iterator implemented .. so i could
do:
m_ptrlist::iterator it = m_ptrlist.begin() .. and iterate / modify
items etc.
but suppose i want MyClass to be able to iterate over this list and
present that iteration interface to the user . what is the correct
way to do this?
Thanks!!