Can the use of C++11’s ‘auto’ improve performance?

I can see why the auto type in C++11 improves correctness and maintainability. I’ve read that it can also improve performance (Almost Always Auto by Herb Sutter), but I miss a good explanation.

  • How can auto improve performance?
  • Can anyone give an example?

4 Answers
4

Leave a Comment