fork download
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <memory>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. cout << sizeof(FILE*) << endl;
  10. cout << sizeof(unique_ptr<FILE,decltype(fclose)*>(fopen("file","w"),fclose)) << endl;
  11. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
4
8