[LLVMdev] faster?

Luca Ciciriello luca_ciciriello at hotmail.com
Fri Feb 3 07:31:06 PST 2012


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)
{
	...
}

or

for(auto it = lines.begin(); it != lines.end(); it++)
{
	…
}

Thanks in advance for any answer.

Luca.



More information about the llvm-dev mailing list