I could use C++11 auto and range-based for feature. But so far I resist due to compatibility.