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?

22 Answers
22

Leave a Reply

Your email address will not be published. Required fields are marked *