1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <string> #include <iostream> int main() { std::string output("If you see this - the world is all right!"); auto func = [=](std::string text) -> int { std::cout << text << std::endl; return 5; }; return func(output); }