Use C++11 isms like ranged for and auto for iterator types.