Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auto f = [](auto i){ return i * i; };
- f(10);
- f(12.3);
- std::vector<int>v ({5, 3, 0, 1});
- std::for_each(v.begin(), v.end(), [](auto i){ std::cout << i << std::endl; });
- std::sort(v.begin(), v.end(), [](auto i){ return (i > j); });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement