Cosmetic change / minor compilation time reduction.

Range-based for loop used instead of std::for_each().

Not including <algorithm> improved compilation time.