list container question

Hi, I've been looking through containers in the reference section and I can't figure out how to access (i.e. READ) elements in a list...

any advice?

You can access the first and last elements with front() and back() respectively. If you need to traverse the list use an iterator.
Thanks a lot, found a nice example in

It's great, more efficient than <vector> in some cases...!

Last edited on
Topic archived. No new replies allowed.