fork(1) download
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <type_traits>
  4. using namespace std;
  5.  
  6. using scanfType1 = decltype(scanf);
  7. using scanfType2 = int (const char * format, ...);
  8. typedef int (scanfType3) (const char * format, ...);
  9.  
  10. int main() {
  11. cout << std::is_same<scanfType1, scanfType2>::value << endl;
  12. cout << std::is_same<scanfType2, scanfType3>::value << endl;
  13. cout << std::is_same<scanfType3, scanfType1>::value << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 4436KB
stdin
Standard input is empty
stdout
1
1
1