devlists at shadowlab.org
Fri Feb 3 08:16:25 PST 2012
Le 3 févr. 2012 à 16:31, Luca Ciciriello a écrit :
> Hi All.
> In my C++ code I'm using the libc++ library and my question is about which construct is faster:
> for(auto line : lines)
> for(auto it = lines.begin(); it != lines.end(); it++)
> Thanks in advance for any answer.
I agree with Alex Zavatone, just run a bench yourself and you will be fixed.
You will get the answer faster than waiting that someone does it for you.
More information about the llvm-dev