fork(1) download
  1. #include <iostream>
  2.  
  3. template <class T>
  4. void f(const T& functor)
  5. {
  6. functor();
  7. }
  8.  
  9. int main()
  10. {
  11. f([](){ std::cout << "Hello, Lambda!" << std::endl; });
  12. return 0;
  13. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
Hello, Lambda!