lambda-snippet.h 98 Bytes
Newer Older
1 2
std::for_each(range.begin(), range.end(),
              [] (int& to_double) { to_double *= 2; });