When should you use auto in C++? https://herbsutter.com/2013/08/12/gotw-94-solution-aaa-style-almost-always-auto/ argues that it's safer, more readable and more consistent.