• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
faster?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

faster?


  • Subject: faster?
  • From: Luca Ciciriello <email@hidden>
  • Date: Fri, 03 Feb 2012 09:49:24 +0100

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.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: faster?
      • From: Andreas Grosam <email@hidden>
  • Prev by Date: Xc4 User Defaults, selecting delimiters
  • Next by Date: Re: faster?
  • Previous by thread: Xc4 User Defaults, selecting delimiters
  • Next by thread: Re: faster?
  • Index(es):
    • Date
    • Thread