fork(5) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <bool T=true, class U> //"default" from LEFT-most parameter
  5. void f(U u){
  6. if(T){ cout<<true;}
  7. else cout<<false;
  8. }
  9. int main() {
  10. auto x = []( ){ };
  11. f(x);
  12. return 0;
  13. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
1