[Dev] STL for_each underwhelms me

Brent Verner dev@trilug.org
Mon, 11 Feb 2002 13:17:03 -0500


[2002-02-11 12:57] M. Mueller (bhu5nji) said:
| At first I though the for_each algorithm was going to be handy.  Then I tried 
| using it.  
| 
| I know very well what a "unary function" is and how they are different from 
| "binary functions" and "unary methods".  I searched the web for advice on how 
| to get around the limitations of for_each only 

What specifically do you want for_each to do for you?

This page is a good synopsis of for_each which shows a stateful
functor.
  http://www.sgi.com/tech/stl/for_each.html

cheers.
  brent

-- 
"Develop your talent, man, and leave the world something. Records are 
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing."  -- Duane Allman