Click here to Skip to main content
15,890,282 members
Articles / Programming Languages / C++

Declutter your loops ... Replacing for with for_each

Rate me:
Please Sign up or sign in to vote.
3.60/5 (21 votes)
28 May 20056 min read 68.6K   12  
How to use the STL for_each algorithm to implement loops and why it's a good idea to do so.

Views

Daily Counts

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United Kingdom United Kingdom
I work as Software Development Manager for XLCubed, a Business Intelligence vendor. My technical interests are generic C++, algorithms, data analysis and software design.

Comments and Discussions