C++: what are lambda functions?

Example:

auto func = [](int x, int y) -> int { return x + y; };
Lambda functions are anonymous inline functions.

Solution:

int sum = func(5, 6);  // Returns 11

Beginner's Guide to C++