![[Dept of Engineering]](http://www.eng.cam.ac.uk/images/house_style/engban-s.gif)
Next: Predicates
Up: The Standard Library
Previous: Set algorithms
Algorithms can use the member functions of objects they're manipulating.
void print_list(set<Employee*>& s)
{
for_each(s.begin(), s.end(), mem_fun(&Employee::print));
}
Tim Love
2001-07-05