transform in place w/std::for_each + lambda