std::for_each(range.begin(), range.end(), [] (int& to_double) { to_double *= 2; });