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?