Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


On Mon, Jan 27, 2014 at 11:35:22AM +1100, Chris Sherlock <chris.sherlock79@gmail.com> wrote:
Libreoffice takes advantage of STL vectors throughout the codebase. So just
a general question: under what circumstances is it better to use a for loop
than an STL for_each loop?

Are there specific advantages to for_each over a regular loop?

It's kind of a stylistic question:
http://stackoverflow.com/questions/7985687/why-use-stdfor-each-over-a-for-loop

Attachment: signature.asc
Description: Digital signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.