Use range based loops over vector.