Source code for http://blog.knatten.org/2013/10/13/prefer-using-references-with-range-based-for-loops/