fork download
  1. #include <memory>
  2.  
  3. int main()
  4. {
  5. auto deleter = [](int*){ };
  6. std::unique_ptr<int[], decltype(deleter)> ptr4(new int[4], deleter);
  7. }
  8.  
Success #stdin #stdout 0s 2956KB
stdin
Standard input is empty
stdout

Standard output is empty