fork download
  1. #include <memory>
  2. struct MyDelete { void operator () (int* p) const; };
  3. static_assert(sizeof(std::unique_ptr<int, MyDelete>) == sizeof(int*),"");
  4.  
  5. int main() {}
  6.  
Success #stdin #stdout 0s 2880KB
stdin
Standard input is empty
stdout
Standard output is empty