Advantages of std::for_each over for loop
Posted
by Rahul G
on Stack Overflow
See other posts from Stack Overflow
or by Rahul G
Published on 2010-01-12T07:37:04Z
Indexed on
2010/03/31
5:03 UTC
Read the original article
Hit count: 281
Are there any advantages of std::for_each
over for
loop? To me, std::for_each
only seems to hinder the readability of code. Why do then some coding standards recommend its use?
© Stack Overflow or respective owner