previous | start | next

## Linked Lists

- Just like the vector, the standard list is a template.
- You can use `push_back` to add elements to the list.

  >     list<string> staff;

  >     staff.push_back("Cracker, Carl");
  >     staff.push_back("Hacker, Harry");
  >     staff.push_back("Lam, Larry");
  >     staff.push_back("Sandman, Susan");

- You cannot directly access elements using subscript access (e.g. `staff[3]`).
- Instead you must start at the beginning of the list, and visit each element in turn using a list iterator.

  >     list<string>::iterator pos;
  >     pos = staff.begin();

previous | start | next