Tuesday, June 22, 2010

The for_each() Algorithm

The for_each algorithm can take a range and a function object as parameters. It will apply the function object to each item in the range.
The for_each algorithm returns the function_object. It is the only algorithm that does this. You can query the returned function object to get its state.

No comments:

Post a Comment