D
Daniel Marques
I'm having trouble to access a list of iterators to other list. See the
sample code below for more clarification:
class A {
public:
A() {}
int f() { }
};
class B {
public:
list<list<A>::iterator> lList;
};
To run through the list I can create an iterator to this list. But I
need to access the information contained in these iterators.
list<list<A>::iterator>::iterator it;
it = lList.begin();
Now I have a iterator to an iterator of a list of the class A type. How
can I do to get access to the member f() using the iterator it?
Thanks in Advance,
Daniel Marques
sample code below for more clarification:
class A {
public:
A() {}
int f() { }
};
class B {
public:
list<list<A>::iterator> lList;
};
To run through the list I can create an iterator to this list. But I
need to access the information contained in these iterators.
list<list<A>::iterator>::iterator it;
it = lList.begin();
Now I have a iterator to an iterator of a list of the class A type. How
can I do to get access to the member f() using the iterator it?
Thanks in Advance,
Daniel Marques