Skip to content

Instantly share code, notes, and snippets.

@wilhelmtell
Created October 20, 2012 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilhelmtell/3924563 to your computer and use it in GitHub Desktop.
Save wilhelmtell/3924563 to your computer and use it in GitHub Desktop.
I don't find this "cache end()" guideline of LLVM right: http://llvm.org/docs/CodingStandards.html#don-t-evaluate-end-every-time-through-a-loop It's a case of premature optimization, and it actually leaves room for error because the new identifier is a non-const lvalue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment