previous | start | next

## Standard Algorithms

- The standard library also supplies a find algorithm.
- The find algorithm returns the second iterator if the search fails.

  >     /* search for a certain name on the staff */
  >     list<string>::iterator it =
  >        find(staff.begin(), staff.end(), name);

- The first two parameters can be other iterators for the list (if you don't want to search the entire list).

previous | start | next