От: | Аноним | ||
Дата: | 07.05.13 06:19 | ||
Оценка: |
// 'Identity' is a lambda that accepts an argument of any type and
// returns the value of its parameter.
auto Identity = [](auto a) { return a; };
int three = Identity(3);
char const* hello = Identity("hello");