fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. auto x = [] {return 1;};
  6. std::function<int()> y;
  7.  
  8. cout << is_same<decltype(x), decltype(y)>::value << endl;
  9. }
Success #stdin #stdout 0.01s 5548KB
stdin
Standard input is empty
stdout
0