Hello,

I am wondering how I would access an element on a List?

Is it something to do with the iterator?

list<Element*> _children;
_children.push_back(child);
_children.push_back(child);

For example, how would I access the "children" of this list?

Thank you.

Recommended Answers

All 2 Replies

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.